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_StartandXID_Continueproperties. -
id(optional): theID_StartandID_Continueproperties. NOTE: in most cases, you should prefer using theXIDproperties because they are consistent under NFKC normalization. -
pattern(optional): thePattern_SyntaxandPattern_White_Spaceproperties.
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?