module String:Stringsig
..end
type
t
type
encoding =
| |
ENCODING_UNDEFINED |
(* | not using Unicode | *) |
| |
ENCODING_ASCII |
(* | = ENCODING_UNDEFINED, unsigned char ASCII | *) |
| |
ENCODING_UTF8 |
(* | 8-bit unicode transformation format | *) |
| |
ENCODING_UTF16 |
(* | 16-bit signature | *) |
| |
ENCODING_UTF16_BE |
(* | 16-bit big-endian | *) |
| |
ENCODING_UTF16_LE |
(* | 16-bit little-endian | *) |
| |
ENCODING_UTF32 |
(* | 32-bit signature | *) |
| |
ENCODING_UTF32_BE |
(* | 32-bit big-endian | *) |
| |
ENCODING_UTF32_LE |
(* | 32-bit little-endian | *) |
| |
ENCODING_SIGNATURE |
(* | detect encoding from signature | *) |
val create' : encoding -> string -> t
val create : ?encoding:encoding -> string -> t