is_digit
XuAPI
pub fn is_digit(r int) bool用途
判断是否 digit。
参数
rint- rune(Unicode 码点)(int)
返回
bool — 是否成立
API
#unicode码点类别与大小写(含部分空白)。
is_digitpub fn is_digit(r int) bool判断是否 digit。
r intbool — 是否成立
is_letterpub fn is_letter(r int) bool判断是否 letter。
r intbool — 是否成立
is_spacepub fn is_space(r int) bool判断是否 space。
r intbool — 是否成立
is_controlpub fn is_control(r int) bool判断是否 control。
r intbool — 是否成立
is_printpub fn is_print(r int) bool判断是否 print。
r intbool — 是否成立
is_graphicpub fn is_graphic(r int) bool判断是否 graphic。
r intbool — 是否成立
is_punctpub fn is_punct(r int) bool判断是否 punct。
r intbool — 是否成立
is_numberpub fn is_number(r int) bool判断是否 number。
r intbool — 是否成立
is_titlepub fn is_title(r int) bool判断是否 title。
r intbool — 是否成立
to_titlepub fn to_title(r int) int转换为 title。
r intint — 该类型的值
max_rune_valuepub fn max_rune_value() int最大rune值。
无
int — 该类型的值
is_upperpub fn is_upper(r int) bool判断是否 upper。
r intbool — 是否成立
is_lowerpub fn is_lower(r int) bool判断是否 lower。
r intbool — 是否成立
to_upperpub fn to_upper(r int) intASCII 字母转大写。
r intint — 该类型的值
to_lowerpub fn to_lower(r int) intASCII 字母转小写。仅处理 ASCII 字母。
r intint — 该类型的值
simple_foldpub fn simple_fold(r int) intsimplefold。
r intint — 该类型的值
is_symbolpub fn is_symbol(r int) bool判断是否 symbol。
r intbool — 是否成立