rune_start
XuAPI
pub fn rune_start(b int) boolPurpose
Rune start.
Parameters
bint- b (int)
Returns
bool — true or false
API
#unicode/utf8UTF-8 encode/decode and validation.
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.
r intint — a value of this type
decodepub fn decode(s &string, i int) intDecode. Throws on failure.
s &stringi intint — a value of this type
decode_widthpub fn decode_width(s &string, i int) intDecode.
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.
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. Throws on failure.
s &stringint — a value of this type
append_runepub fn append_rune(s &string, r int) stringAppend rune.
s &stringr intstring — result string