package lablgtk3
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=22c7061c8acb49c1ccd0a19396d2b1d7d1d677e0ce7954122404be94a00fecf9
    
    
  sha512=193c340d9941680869eb90bc89f5b27cc5bdf294f4635081a9ba56a99fa2982266c4ee2eb5fd04d3a3f6150082800de5df786def8c72a276a779d843d914e9e3
    
    
  doc/lablgtk3/Gutf8/index.html
Module Gutf8
Pure ocaml module for conversion between UCS and UTF8
type unistring = unichar arrayval from_unichar : unichar -> stringfrom_unichar 0xiii converts a code point 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 code point is a valid unicode point.
val from_unistring : unistring -> stringto_unichar_validated decodes an UTF-8 encoded code point and checks for incomplete characters, invalid characters and overlong encodings.
to_unichar decodes an UTF-8 encoded code point. Result is undefined if pos does not point to a valid UTF-8 encoded character.
val to_unistring : string -> unistringto_unistring decodes an UTF-8 encoded string into an array of unichar. The string must be valid.
val first_char : string -> unicharfirst_char returns the first UTF-8 encoded code point.
next returns the position of the code point following the one at pos.
module Error : sig ... endto_unichar_validated may raise PARTIAL_INPUT or ILLEGAL_SEQUENCE