const RUNE_ERROR
pub const RUNE_ERROR = 65533Purpose
Unicode replacement character used by consumers recovering from invalid encoding.
#unicode/utf8UTF-8 encode/decode and validation.
const RUNE_ERRORpub const RUNE_ERROR = 65533Unicode replacement character used by consumers recovering from invalid encoding.
rune_startpub fn rune_start(b int) boolRune start.
b intbool — true or false
rune_lenpub fn rune_len(r int) intRune len. Throws on failure; handle the error or propagate it to the caller.
r intint — a value of this type
decodepub fn decode(s &string, i int) intDecode data from encoded representation. Throws on failure; handle the error or propagate it to the caller.
s &stringi intint — a value of this type
decode_widthpub fn decode_width(s &string, i int) intDecode width data.
s &stringi intint — a value of this type
validpub fn valid(s &string) boolWhether the value is valid.
s &stringbool — true or false
rune_countpub fn rune_count(s &string) intRune count.
s &stringint — a value of this type
encodepub fn encode(r int) stringEncode data into output format.
r intstring — result string
valid_runepub fn valid_rune(r int) boolValid rune.
r intbool — true or false
full_runepub fn full_rune(s &string) boolFull rune.
s &stringbool — true or false
decode_lastpub fn decode_last(s &string) intDecode last data. Throws on failure; handle the error or propagate it to the caller.
s &stringint — a value of this type
append_runepub fn append_rune(s &string, r int) stringAppend rune.
s &stringr intstring — result string