package tyre
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=63ca1915da896640534b5cf928d220198709ec74b899d55b830fb0ceccebd633
sha512=536440d090046569449c7752315d568b3447e84c8c0e555a35a20a504a96a538ed9bc4e8e5f78e5860744ba863023331aa0a9893bf2028ae280cad678ec8d59c
doc/tyre/Tyre/Charset/index.html
Module Tyre.CharsetSource
Sets of characters
Sets of characters support more operations than regular regexps, as you can diff them, so they have a specific type that allows these operations.
To convert to a regular Tyre.t, use charset or rep_charset
A set of characters.
range of characters ordered according to their code. Include both bounds.
Predefined character sets
In general, matches latin1 characters, thats is the ocaml Stdlib.char type.
The exact characters matched are not documented in Re, the documentation bellow was written using the source: https://ocaml.orange/p/re/latest/doc/src/re/cset.ml.html .
lower is lowercase latin1 letter.
Includes range 'a' 'z', char 'µ', range '\223' '\246' = set "ßàáâãäåæçèéêëìíîïðñòóôõö" and range '\248' '\255' = set "øùúûüýþÿ"
latin1 ponctuation.
set "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\160¡¢£¤¥¦§¨©«¬\173®¯°±²³´¶·¸¹»¼½¾¿×÷"upper is latin1 uppercase letter. This includes ascii uppercase letters, that is range 'A' 'Z', but also the ranges range '\192' '\214' = set "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ" and range '\216' '\222' = set "ØÙÚÛÜÝÞ"