Table of Contents

Method GetPointerToFirstInvalidChar

Namespace
SimdUnicode
Assembly
SimdUnicode.dll

GetPointerToFirstInvalidChar(char*, int)

Given an input buffer pInputBuffer of inputLength UTF-16 code units, returns a pointer to the first lone (unpaired) surrogate.

public static char* GetPointerToFirstInvalidChar(char* pInputBuffer, int inputLength)

Parameters

pInputBuffer char*
inputLength int

Returns

char*

Remarks

Returns a pointer to the end of pInputBuffer if the buffer is well-formed.