XU XUv0.8.8
EN

API

#unicode

import: #unicode

counts: 17 函数, 0 方法, 0 类型, 0 常量, 0 方法集

码点类别与大小写(含部分空白)。

is_digit

XuAPI
pub fn is_digit(r int) bool

用途

判断是否 digit。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_letter

XuAPI
pub fn is_letter(r int) bool

用途

判断是否 letter。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_space

XuAPI
pub fn is_space(r int) bool

用途

判断是否 space。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_control

XuAPI
pub fn is_control(r int) bool

用途

判断是否 control。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_print

XuAPI
pub fn is_print(r int) bool

用途

判断是否 print。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_graphic

XuAPI
pub fn is_graphic(r int) bool

用途

判断是否 graphic。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_punct

XuAPI
pub fn is_punct(r int) bool

用途

判断是否 punct。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_number

XuAPI
pub fn is_number(r int) bool

用途

判断是否 number。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_title

XuAPI
pub fn is_title(r int) bool

用途

判断是否 title。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

to_title

XuAPI
pub fn to_title(r int) int

用途

转换为 title。

参数

r int
rune(Unicode 码点)(int)

返回

int — 该类型的值

max_rune_value

XuAPI
pub fn max_rune_value() int

用途

最大rune值。

参数

无

返回

int — 该类型的值

is_upper

XuAPI
pub fn is_upper(r int) bool

用途

判断是否 upper。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

is_lower

XuAPI
pub fn is_lower(r int) bool

用途

判断是否 lower。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立

to_upper

XuAPI
pub fn to_upper(r int) int

用途

ASCII 字母转大写。

参数

r int
rune(Unicode 码点)(int)

返回

int — 该类型的值

to_lower

XuAPI
pub fn to_lower(r int) int

用途

ASCII 字母转小写。仅处理 ASCII 字母。

参数

r int
rune(Unicode 码点)(int)

返回

int — 该类型的值

simple_fold

XuAPI
pub fn simple_fold(r int) int

用途

simplefold。

参数

r int
rune(Unicode 码点)(int)

返回

int — 该类型的值

is_symbol

XuAPI
pub fn is_symbol(r int) bool

用途

判断是否 symbol。

参数

r int
rune(Unicode 码点)(int)

返回

bool — 是否成立