- Notifications
You must be signed in to change notification settings - Fork15
Non-blocking streaming Unicode codec for OCaml
License
dbuenzli/uutf
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Warning. You are encouraged not to use this library.
- As of OCaml 4.14, both UTF encoding and decoding are availablein the standard library, see the
String
andBuffer
modules. - If you are looking for a stream abstraction compatible witheffect based concurrency look into
bytesrw
package.
Uutf is a non-blocking streaming codec to decode and encode the UTF-8,UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficientlywork character by character without blocking on IO. Decoders performcharacter position tracking and support newline normalization.
Functions are also provided to fold over the characters of UTF encodedOCaml string values and to directly encode characters in OCamlBuffer.t values.
Uutf has no dependency and is distributed under the ISC license.
Home page:http://erratique.ch/software/uutf
Uutf can be installed withopam
:
opam install uutf
If you don't useopam
consult theopam
file for buildinstructions.
The documentation can be consultedonline or viaodig doc uutf
.
Questions are welcome but better asked on theOCaml forum than on theissue tracker.
About
Non-blocking streaming Unicode codec for OCaml