System::Text::Encodings::Web::JavaScriptEncoder::FindFirstCharacterToEncode method

JavaScriptEncoder::FindFirstCharacterToEncode method

Finds the index of the first UTF-16 character that needs to be escaped.

int32_t System::Text::Encodings::Web::JavaScriptEncoder::FindFirstCharacterToEncode(const char16_t *text, int32_t textLength) const
ParameterTypeDescription
textconst char16_t *The UTF-16 text to scan.
textLengthint32_tThe number of characters in text.

ReturnValue

Index of the first character requiring escaping, or -1 if none.

See Also