Skip to content

std.unicode_tables

Unicode 16.0.0 character data for std.unicode. Generated by tools/unicode_tables.py from regex-syntax’s Unicode tables. Regenerate it, don’t edit it.

fn unicode_version() -> String

The version of Unicode these tables are from.

fn general_category(key: String) -> Option[String]

A general category’s code points, by its canonical name (encoded: see std.unicode.decode).

fn script(key: String) -> Option[String]

A script’s code points, by its canonical name (encoded: see std.unicode.decode).

fn script_extension(key: String) -> Option[String]

The code points whose script extensions include a script, by its canonical name (encoded: see std.unicode.decode).

fn bool_property(key: String) -> Option[String]

A binary property’s code points, by its canonical name (encoded: see std.unicode.decode).

fn grapheme_cluster_break(key: String) -> Option[String]

A Grapheme_Cluster_Break value’s code points, by its canonical name (encoded: see std.unicode.decode).

fn word_break(key: String) -> Option[String]

A Word_Break value’s code points, by its canonical name (encoded: see std.unicode.decode).

fn sentence_break(key: String) -> Option[String]

A Sentence_Break value’s code points, by its canonical name (encoded: see std.unicode.decode).

fn age(key: String) -> Option[String]

The code points assigned in exactly one version (V1_1, …), by its canonical name (encoded: see std.unicode.decode).

fn perl_word() -> String

\\w: word characters (encoded: see std.unicode.decode).

fn perl_digit() -> String

\\d: decimal digits (Nd) (encoded: see std.unicode.decode).

fn perl_space() -> String

\\s: White_Space (encoded: see std.unicode.decode).

fn property_name(key: String) -> Option[String]

A property’s canonical name, from its name or an alias, normalized (std.unicode.normalize).

fn property_value(property: String, normalized: String) -> Option[String]

A property value’s canonical name, from its name or an alias, normalized (std.unicode.normalize), for the properties that have values here.

fn folding_keys() -> List[Int]

Simple case folding: the characters that have others in their case class, in order (their others are folding_others).

fn folding_others() -> List[List[Int]]

For each of folding_keys, the other characters of its case class.

fn indic_conjunct_break(key: String) -> Option[String]

An Indic_Conjunct_Break value’s code points (Consonant, Extend, Linker; from the UCD’s DerivedCoreProperties.txt), by name (encoded: see std.unicode.decode).