[][src]Crate unic_ucd_ident

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. NOTE: 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

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_xid_continue

Is this a NFKC-safe identifier continuing character?

is_xid_start

Is this a NFKC-safe identifier starting character?