- <init>
Constructs an instance from a String.
- getString
Gets the UTF-8 value as a string. The returned string is always already
interned.
- toHuman
- compareTo
- equals
- getBytes
Gets the UTF-8 value as UTF-8 encoded bytes.
- getUtf16Size
Gets the size of this instance as UTF-16 code points. That is, get the number of
16-bit chars in the
- getUtf8Size
Gets the size of this instance as UTF-8 code points. That is, get the number of
bytes in the UTF-8 e
- stringToUtf8Bytes
Converts a string into its MUTF-8 form. MUTF-8 differs from normal UTF-8 in the
handling of characte
- throwBadUtf8
Helper for #utf8BytesToString, which throws the right exception for a bogus
utf-8 byte.
- toQuoted
Gets the value as a human-oriented string, surrounded by double quotes, but
ellipsizes the result if
- utf8BytesToString
Converts an array of UTF-8 bytes into a string.