module Utf8: sig
.. end
Unicode Manipulation
Utf8 handling, and conversion to ucs4
val validate : string -> bool
If you read an utf8 string from somewhere, you should validate it,
or risk random segmentation faults
val length : string -> int
val from_unichar : Glib.unichar -> string
from_unichar 0xiii
converts an index
iii
(usually in hexadecimal form)
into a string containing the UTF-8 encoded character
0xiii
. See
unicode.org for charmaps.
Does not check that the given index is a valid unicode index.
val from_unistring : Glib.unistring -> string
val to_unichar : string -> pos:int Pervasives.ref -> Glib.unichar
val to_unistring : string -> Glib.unistring
val first_char : string -> Glib.unichar