TextEncoder.FindFirstCharacterToEncodeUtf8(ReadOnlySpan<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the first element in a UTF-8 text input buffer that would be escaped by the current encoder instance.
public:
virtual int FindFirstCharacterToEncodeUtf8(ReadOnlySpan<System::Byte> utf8Text);
public virtual int FindFirstCharacterToEncodeUtf8 (ReadOnlySpan<byte> utf8Text);
abstract member FindFirstCharacterToEncodeUtf8 : ReadOnlySpan<byte> -> int
override this.FindFirstCharacterToEncodeUtf8 : ReadOnlySpan<byte> -> int
Public Overridable Function FindFirstCharacterToEncodeUtf8 (utf8Text As ReadOnlySpan(Of Byte)) As Integer
Parameters
- utf8Text
- ReadOnlySpan<Byte>
The UTF-8 text input buffer to search.
Returns
The index of the first element in utf8Text
that would be escaped by the current encoder instance, or -1 if no data in utf8Text
requires escaping.
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.