View source code Display the source code in std/uni.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

Struct std.uni.unicode

A single entry point to lookup Unicode sets by name or alias of a block, script or general category.

It uses well defined standard rules of property name lookup. This includes fuzzy matching of names, so that 'White_Space', 'white-SpAce' and 'whitespace' are all considered equal and yield the same set of white space .

Properties

Name Type Description
opDispatch [get] Performs the lookup of set of with compile-time correctness checking. This short-cut version combines 3 searches: across blocks, scripts, and common binary properties.

Methods

Name Description
opCall The same lookup across blocks, scripts, or binary properties, but performed at run-time. This version is provided for cases where name is not known beforehand; otherwise compile-time checked opDispatch is typically a better choice.

Inner structs

Name Description
block Narrows down the search for sets of to all Unicode blocks.
hangulSyllableType Fetch a set of that have the given hangul syllable type.
script Narrows down the search for sets of to all Unicode scripts.

Authors

Dmitry Olshansky

License

Boost License 1.0.

Comments