Returns the ith UTF-8 code unit of this string.
Returns the ith UTF-8 code unit of this string.
Returns the length in UTF-8 code units of this string.
Returns the length in UTF-8 code units of this string.
An immutable UTF-8 string.
The contents of a
UTF8Stringis guaranteed to be a well-formed UTF-8 string.equals()andhashCode(), along with==and##, are just as broken forUTF8Stringas forArrays. Use the methods in the companion object instead. This is unavoidable because we cannot overrideequalsnorhashCodein anAnyVal.