package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=f1c717c9a1015e81253f226ae594f547
sha512=7640b6af5a61e53e52eac51f237a06c5c21597374481af218cf0601c2b9059b96254058b92adb73ce20b1dece4ccaffb99d1b29b235c4dc954619738d8d0de40
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?