package camomile

  1. Overview
  2. Docs
A Unicode library

Install

Dune Dependency

Authors

Maintainers

Sources

camomile-1.0.2.tbz
sha256=f0a419b0affc36500f83b086ffaa36c545560cee5d57e84b729e8f851b3d1632
sha512=7586422e68779476206027c6ebbe19b677fbe459153221f7c952c7fae374c5c8232249cb76fdb1f482069707aa1580be827cd39693906142988268b7f0e7f6d0

doc/camomile.library/CamomileLibrary/UReStr/index.html

Module CamomileLibrary.UReStr

Module for a Str-like regular expression syntax. The difference can be summarised as follows.

  • Non-ASCII characters can be used if encoded by UTF-8, or using the escape syntax \u<code number as hex digits>.
  • Each Unicode character is treated as a single character.
  • Character properties like Lu (UCharInfo.general_category_type), White_Space (UCharInfo.character_property_type), Ogham (UCharInfo.script_type) can be used in character sets. e.g. [{Lu & ID_Start}][{ID_Continue}]* (capitalised identifier), \([{Han}]+\|[{Katakana}]+\)[{Hiragana}]* (Japanese word component). Boolean notations as | (or) :, & (and) - (set subtraction) can be used in {...} notations. Any is used to denote the set of all characters in {...} notations.
module type Interface = sig ... end
OCaml

Innovation. Community. Security.