Module unichar

Module unichar 

Source
Available on crate feature core only.
Expand description

A Unicode scalar value.

This is a structure that wraps an NSTDChar32 (Rust’s char primitive is not FFI safe). This is done so that an NSTDUnichar can be created once and used a number of times without worrying about Unicode validity.

Structs§

NSTDUnichar
Represents a unicode scalar value.

Functions§

nstd_core_unichar_is_alphabetic
Determines whether or not chr is alphabetic according to the Unicode standard.
nstd_core_unichar_is_alphanumeric
Determines whether or not chr is alphabetic or numeric according to the Unicode standard.
nstd_core_unichar_is_ascii
Determines whether or not chr is an ASCII character.
nstd_core_unichar_is_control
Determines whether or not chr is a control character according to the Unicode standard.
nstd_core_unichar_is_digit
Determines whether or not chr is a digit, depending on radix.
nstd_core_unichar_is_lowercase
Determines whether or not chr is lowercase according to the Unicode standard.
nstd_core_unichar_is_numeric
Determines whether or not chr is numeric according to the Unicode standard.
nstd_core_unichar_is_uppercase
Determines whether or not chr is uppercase according to the Unicode standard.
nstd_core_unichar_is_whitespace
Determines whether or not chr is white space according to the Unicode standard.
nstd_core_unichar_new
Creates a new NSTDUnichar from a 32-bit character value.
nstd_core_unichar_replacement
Returns the Unicode replacement character (�).

Type Aliases§

NSTDOptionalUnichar
Represents an optional value of type NSTDUnichar.