package camomile

  1. Overview
  2. Docs
A Unicode library

Install

Dune Dependency

Authors

Maintainers

Sources

camomile-1.0.1.tbz
sha256=c23b0a39cb36fd130168d3eba7cb4a91fbd35982b6cb2320ce5b06f271965a07
md5=82e016653431353a07f22c259adc6e05

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.