FindFirstCharacterToEncodeUtf8()
JavaScriptEncoder::FindFirstCharacterToEncodeUtf8(ReadOnlySpan<uint8_t>) const method
Finds the index of the first UTF-8 byte that needs to be escaped.
int32_t System::Text::Encodings::Web::JavaScriptEncoder::FindFirstCharacterToEncodeUtf8(ReadOnlySpan<uint8_t> utf8Text) const
Arguments
| Parameter | Type | Description |
|---|---|---|
| utf8Text | ReadOnlySpan<uint8_t> | The UTF-8 text to scan. |
Return Value
Index of the first byte requiring escaping, or -1 if none.
See Also
- Class ReadOnlySpan
- Class JavaScriptEncoder
- Namespace System::Text::Encodings::Web
- Library Aspose.Slides