Module regex_syntax::unicode[][src]

Re-exports

use std::cmp::Ordering;
use std::result;
use ucd_util;
use ucd_util::PropertyValues;
use hir;
use unicode_tables::age;
use unicode_tables::case_folding_simple::CASE_FOLDING_SIMPLE;
use unicode_tables::general_category;
use unicode_tables::property_bool;
use unicode_tables::property_names::PROPERTY_NAMES;
use unicode_tables::property_values::PROPERTY_VALUES;
use unicode_tables::script;
use unicode_tables::script_extension;

Structs

AgeIter

An iterator over Unicode Age sets. Each item corresponds to a set of codepoints that were added in a particular revision of Unicode. The iterator yields items in chronological order.

SimpleFoldIter

An iterator over a codepoint's simple case equivalence class.

Enums

CanonicalClassQuery

Like ClassQuery, but its parameters have been canonicalized. This also differentiates binary properties from flattened general categories and scripts.

ClassQuery

A query for finding a character class defined by Unicode. This supports either use of a property name directly, or lookup by property value. The former generally refers to Binary properties (see UTS#44, Table 8), but as a special exception (see UTS#18, Section 1.2) both general categories (an enumeration) and scripts (a catalog) are supported as if each of their possible values were a binary property.

Error

An error that occurs when dealing with Unicode.

Functions

ages
canonical_gencat
canonical_prop
canonical_script
canonical_value
class

Looks up a Unicode class given a query. If one doesn't exist, then None is returned.

contains_simple_case_mapping

Returns true if and only if the given (inclusive) range contains at least one Unicode scalar value that has a non-empty non-trivial simple case mapping.

encode_utf8

Encode the given Unicode character to dst as a single UTF-8 sequence.

hir_class

Build a Unicode HIR class from a sequence of Unicode scalar value ranges.

normalize
property_set
property_values
simple_fold

Return an iterator over the equivalence class of simple case mappings for the given codepoint. The equivalence class does not include the given codepoint.

Type Definitions

Result