Crate unic_ucd_ident

source ·
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): the XID_Start and XID_Continue properties
  • id (optional): the ID_Start and ID_Continue properties; in most cases, you should prefer using the XID properties because they are consistent under NFKC normalization
  • pattern (optional): the Pattern_Syntax and Pattern_White_Space properties

Structs

A character that can continue an identifier, stable under NFKC.
A character that can start an identifier, stable under NFKC.

Constants

UNIC component description.
UNIC component name.
UNIC component version.

Functions

Is this a NFKC-safe identifier continuing character?
Is this a NFKC-safe identifier starting character?