Method CodePointCount
CodePointCount(BytesRef)
Returns the number of code points in this UTF8 sequence.
This method assumes valid UTF8 input. This method does not perform full UTF8 validation, it will check only the first byte of each codepoint (for multi-byte sequences any bytes after the head are skipped).
Declaration
public static int CodePointCount(BytesRef utf8)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | utf8 |
Returns
Type | Description |
---|---|
System.Int32 |