package lablgtk3

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Glib.Utf8Source

Unicode Manipulation @gtkdoc glib glib-Unicode-Manipulation

UTF-8 handling, and conversion to UCS-4

Sourceval validate : string -> bool

If you read an UTF-8 string from somewhere, you should validate it, or risk random segmentation faults

Sourceval length : string -> int
Sourceval from_unichar : unichar -> string

from_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.

Sourceval from_unistring : unistring -> string
Sourceval to_unichar_validated : string -> pos:int ref -> unichar

to_unichar_validated decodes an UTF-8 encoded code point and checks for incomplete characters, invalid characters and overlong encodings.

Sourceval to_unichar : string -> pos:int ref -> unichar

to_unichar decodes an UTF-8 encoded code point. Result is undefined if pos does not point to a valid UTF-8 encoded character.

Sourceval to_unistring : string -> unistring

to_unistring decodes an UTF-8 encoded string into an array of unichar. The string must be valid.

Sourceval first_char : string -> unichar
Sourceval offset_to_pos : string -> pos:int -> off:int -> int
Sourcetype normalize_mode = [
  1. | `DEFAULT
  2. | `DEFAULT_COMPOSE
  3. | `ALL
  4. | `ALL_COMPOSE
]
Sourceval normalize : string -> normalize_mode -> string
Sourceval uppercase : string -> string
Sourceval lowercase : string -> string
Sourceval casefold : string -> string
Sourceval collate : string -> string -> int
Sourceval collate_key : string -> string
OCaml

Innovation. Community. Security.