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 : CamomileLibrary.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 : CamomileLibrary.UChar.t -> bool
val is_lowercase : CamomileLibrary.UChar.t -> bool
val is_newline : CamomileLibrary.UChar.t -> bool
`Zl
val lowercase : CamomileLibrary.UChar.t -> CamomileLibrary.UChar.t
val uppercase : CamomileLibrary.UChar.t -> CamomileLibrary.UChar.t
val to_char : CamomileLibrary.UChar.t -> char
to_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 -> CamomileLibrary.UChar.t
Invalid_argument
"UChar.of_digit" if the
argument is outside the range 0--9val to_int : CamomileLibrary.UChar.t -> int
uint_code
val icompare : CamomileLibrary.UChar.t -> CamomileLibrary.UChar.t -> int
module IUChar:BatInterfaces.OrderedType
with 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 : CamomileLibrary.UChar.t -> script
typecategory =
[ `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 : CamomileLibrary.UChar.t -> category
val print : 'a BatInnerIO.output -> CamomileLibrary.UChar.t -> unit
val t_printer : CamomileLibrary.UChar.t BatValue_printer.t