package text
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Encoding
Character encodings
equal e1 e2 returns whether e1 and e2 denotes the same encoding. It does a caseless comparison of e1 or e2 without optionnal suffixes ("//IGNORE" or "//TRANSLIT").
val system : tThe character encoding used by the system
recode_string ~src ~dst str recode str from src encoding to dst encoding.
Decoding
type decoding_result = | Dec_ok of code_point * int(*
*)Dec_ok(code, num)means that the operation succeed.codeis the unicode code-point read andnumis the number of bytes read by the decoder.| Dec_need_more(*
*)Dec_not_finishedmeans that the input contains a not-terminated sequence| Dec_error(*
*)Dec_errormeans that the input contains an invalid sequence
Result of a decoding operation
val decode : decoder -> string -> int -> int -> decoding_resultdecode decoder buffer ptr len decodes with decoder bytes at position ptr in buffer
Encoding
val encode : encoder -> string -> int -> int -> code_point -> encoding_resultencode decoder buffer ptr len code encodes code with encoder at position ptr in buffer
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page