package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=d74226924b65697a8558eb34a6074417
sha512=d5094e362f9ad7fe91aa060ef5c9805812cf888b326f0f0070f929205a83169a64c78dfce58a2ec0da77555b21c69a1f287fb38da9867cd6b16507f6c20fa666
doc/containers/CCUtf8_string/index.html
Module CCUtf8_string
Source
Unicode String, in UTF8
A unicode string represented by a utf8 bytestring. This representation is convenient for manipulating normal OCaml strings that are encoded in UTF8.
We perform only basic decoding and encoding between codepoints and bytestrings. For more elaborate operations, please use the excellent Uutf.
status: experimental
Fast internal iterator.
A UTF8 string
Malformed string at given offset
Iter of unicode codepoints. Renamed from to_std_seq
since 3.0.
concat sep l
concatenates each string in l
, inserting sep
in between each string. Similar to Concatenating.
Build a string from unicode codepoints Renamed from of_std_seq
since 3.0.
Translate the unicode codepoint to a list of utf-8 bytes. This can be used, for example, in combination with Buffer.add_char
on a pre-allocated buffer to add the bytes one by one (despite its name, Buffer.add_char
takes individual bytes, not unicode codepoints).
Safe version of of_string_exn
.
Valid UTF8?