module String:sig..end
string values.val encoding_guess : string -> [ `UTF_16BE | `UTF_16LE | `UTF_8 ] * bool
Note. Initial BOMs
are also folded over.
type'afolder ='a -> int -> [ `Malformed of string | `Uchar of Uutf.uchar ] -> 'a
`Uchar or `Malformed starts.val fold_utf_8 : 'a folder -> 'a -> string -> 'afold_utf_8 f a s is
f ( ... (f (f a 0 u0) j1 u1) ... ) ... )
jn un
where ui, ji are the Unicode
scalar value
and the starting position of the characters in the
UTF-8 encoded string s.val fold_utf_16be : 'a folder -> 'a -> string -> 'afold_utf_16be f a s is
f ( ... (f (f a 0 u0) j1 u1) ... ) ... )
jn un
where ui, ji are the Unicode
scalar value
and the starting position of the characters in the
UTF-16BE encoded string s.val fold_utf_16le : 'a folder -> 'a -> string -> 'afold_utf_16le f a s is
f ( ... (f (f a 0 u0) j1 u1) ... ) ... )
jn un
where ui, ji are the Unicode
scalar value
and the starting position of the characters in the
UTF-16LE encoded string s.