Unicode
Provides utility methods for UTF-8, UTF-16, UCS-4 (a.k.a. UTF-32), and WTF-8.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public struct Unicode
Static Fields
Value | Description |
|---|---|
| kMaximumValidCodePoint | The maximum value of a valid UNICODE code point |
Static Properties
Property | Description |
|---|---|
| BadRune | The null rune value. |
| ReplacementCharacter | The Unicode character �. |
Static Methods
Method | Description |
|---|---|
| IsValidCodePoint | Returns true if a code point is valid. |
| NotTrailer | Returns true if the byte is not the last byte of a UTF-8 character. |
| UcsToUtf16 | Writes a rune to a buffer as a UTF-16 encoded character. |
| UcsToUtf8 | Writes a rune to a buffer as a UTF-8 encoded character. |
| Utf16ToUcs | Reads a UTF-16 encoded character from a buffer. |
| Utf16ToUtf8 | Copies UTF-16 characters from one buffer to another buffer as UTF-8. |
| Utf8ToUcs | Reads a UTF-8 encoded character from a buffer. |
| Utf8ToUtf16 | Copies UTF-8 characters from one buffer to another as UTF-16. |
| Utf8ToUtf8 | Copies UTF-8 characters from one buffer to another. |
Structs
Struct | Description |
|---|---|
| Unicode.Rune | Representation of a Unicode character as a code point. |