is_digit
pub fn is_digit(r int) boolPurpose
is_digit reports whether r is in Unicode category Nd ( unicode.IsDigit).
Parameters
rint- rune (Unicode code point) (int)
Returns
bool — true or false
API
#unicodeCode-point classes and case (including extra whitespace).
is_digitpub fn is_digit(r int) boolis_digit reports whether r is in Unicode category Nd ( unicode.IsDigit).
r intbool — true or false
is_letterpub fn is_letter(r int) boolis_letter reports whether r is in Lu|Ll|Lt|Lm|Lo ( unicode.IsLetter).
r intbool — true or false
is_spacepub fn is_space(r int) boolis_space reports Unicode whitespace: Zs, ASCII whitespace and U+0085/U+2028/U+2029 (the same set as unicode.IsSpace).
r intbool — true or false
is_controlpub fn is_control(r int) boolWhether it is control.
r intbool — true or false
is_printpub fn is_print(r int) boolWhether it is print.
r intbool — true or false
is_graphicpub fn is_graphic(r int) boolWhether it is graphic.
r intbool — true or false
is_punctpub fn is_punct(r int) boolWhether it is punct.
r intbool — true or false
is_numberpub fn is_number(r int) boolWhether it is number.
r intbool — true or false
is_titlepub fn is_title(r int) boolWhether it is title.
r intbool — true or false
to_titlepub fn to_title(r int) intConvert to title.
r intint — a value of this type
max_rune_valuepub fn max_rune_value() intMax rune value.
none
int — a value of this type
is_upperpub fn is_upper(r int) boolis_upper reports whether r is in Unicode category Lu ( unicode.IsUpper).
r intbool — true or false
is_lowerpub fn is_lower(r int) boolis_lower reports whether r is in Unicode category Ll ( unicode.IsLower).
r intbool — true or false
to_upperpub fn to_upper(r int) intto_upper returns the simple upper-case mapping of r ( unicode.ToUpper) non-letter runes (and runes with no single-rune upper) are returned as-is.
r intint — a value of this type
to_lowerpub fn to_lower(r int) intto_lower returns the simple lower-case mapping of r ( unicode.ToLower). U+0130 maps to U+0069 ('i'), using the Unicode simple single-rune mapping. ASCII letters only.
r intint — a value of this type
simple_foldpub fn simple_fold(r int) intSimple fold.
r intint — a value of this type
is_symbolpub fn is_symbol(r int) boolis_symbol includes all Unicode S categories (Sm|Sc|Sk|So).
r intbool — true or false