Struct Unicode
Provides utility methods for UTF-8, UTF-16, UCS-4 (a.k.a. UTF-32), and WTF-8.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct Unicode
Fields
Name | Description |
---|---|
k |
The maximum value of a valid UNICODE code point |
Properties
Name | Description |
---|---|
Bad |
The null rune value. |
Replacement |
The Unicode character �. |
Methods
Name | Description |
---|---|
Is |
Returns true if a code point is valid. |
Not |
Returns true if the byte is not the last byte of a UTF-8 character. |
Ucs |
Writes a rune to a buffer as a UTF-16 encoded character. |
Ucs |
Writes a rune to a buffer as a UTF-8 encoded character. |
Utf16To |
Reads a UTF-16 encoded character from a buffer. |
Utf16To |
Copies UTF-16 characters from one buffer to another buffer as UTF-8. |
Utf8To |
Reads a UTF-8 encoded character from a buffer. |
Utf8To |
Copies UTF-8 characters from one buffer to another as UTF-16. |
Utf8To |
Copies UTF-8 characters from one buffer to another. |