Expand description
§UNIC — UCD — Identifier Properties
A component of unic
: Unicode and Internationalization Crates for Rust.
Accessor to the UCD properties used widely by UAX31 Unicode Identifier and Pattern Syntax.
§Features
-
xid
(default): theXID_Start
andXID_Continue
properties. -
id
(optional): theID_Start
andID_Continue
properties. NOTE: in most cases, you should prefer using theXID
properties because they are consistent under NFKC normalization. -
pattern
(optional): thePattern_Syntax
andPattern_White_Space
properties.
Modules§
Structs§
- IdContinue
- A character that can continue an identifier.
- IdStart
- A character that can start an identifier.
- XidContinue
- A character that can continue an identifier, stable under NFKC.
- XidStart
- A character that can start an identifier, stable under NFKC.
Constants§
- PKG_
DESCRIPTION - UNIC component description.
- PKG_
NAME - UNIC component name.
- PKG_
VERSION - UNIC component version.
- UNICODE_
VERSION - The Unicode version of data
Functions§
- is_
id_ continue - Is this a identifier continuing character?
- is_
id_ start - Is this a identifier starting character?
- is_
xid_ continue - Is this a NFKC-safe identifier continuing character?
- is_
xid_ start - Is this a NFKC-safe identifier starting character?