module BatUChar:Unicode (ISO-UCS) characters.sig..end
This module implements Unicode (actually ISO-UCS) characters. All 31-bit code points are allowed.
Note For conversions to lower/upercase, see modules UTF8 and Rope.
Author(s): Yamagata Yoriyuki (Camomile module), Edgar Friendly, David Teller
val is_whitespace : BatCamomile.UChar.t -> bool
A character is a whitespace if it is either one of the ASCII
whitespaces (characters 9, 10, 12, 13, 26 and 32), or a part of
Unicode category Z (separators).
val is_uppercase : BatCamomile.UChar.t -> boolval is_lowercase : BatCamomile.UChar.t -> boolval is_newline : BatCamomile.UChar.t -> bool`Zlval lowercase : BatCamomile.UChar.t -> BatCamomile.UChar.tval uppercase : BatCamomile.UChar.t -> BatCamomile.UChar.tval to_char : BatCamomile.UChar.t -> charto_char u returns the Latin-1 representation of u.Out_of_range if u can not be represented by Latin-1.val of_digit : int -> BatCamomile.UChar.tInvalid_argument "UChar.of_digit" if the
argument is outside the range 0--9val to_int : BatCamomile.UChar.t -> intuint_codeval icompare : BatCamomile.UChar.t -> BatCamomile.UChar.t -> intmodule IUChar:BatInterfaces.OrderedTypewith type t = t
typescript =[ `Arabic
| `Armenian
| `Bengali
| `Bopomofo
| `Buhid
| `Canadian_Aboriginal
| `Cherokee
| `Common
| `Cyrillic
| `Deseret
| `Devanagari
| `Ethiopic
| `Georgian
| `Gothic
| `Greek
| `Gujarati
| `Gurmukhi
| `Han
| `Hangul
| `Hanunoo
| `Hebrew
| `Hiragana
| `Inherited
| `Kannada
| `Katakana
| `Khmer
| `Lao
| `Latin
| `Malayalam
| `Mongolian
| `Myanmar
| `Ogham
| `Old_Italic
| `Oriya
| `Runic
| `Sinhala
| `Syriac
| `Tagalog
| `Tagbanwa
| `Tamil
| `Telugu
| `Thaana
| `Thai
| `Tibetan
| `Yi ]
val script : BatCamomile.UChar.t -> scripttypecategory =[ `Cc
| `Cf
| `Cn
| `Co
| `Cs
| `Ll
| `Lm
| `Lo
| `Lt
| `Lu
| `Mc
| `Me
| `Mn
| `Nd
| `Nl
| `No
| `Pc
| `Pd
| `Pe
| `Pf
| `Pi
| `Po
| `Ps
| `Sc
| `Sk
| `Sm
| `So
| `Zl
| `Zp
| `Zs ]
val category : BatCamomile.UChar.t -> categoryval print : 'a BatInnerIO.output -> BatCamomile.UChar.t -> unit
val t_printer : BatCamomile.UChar.t BatValue_printer.t