package uutf
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=50cc4486021da46fb08156e9daec0d57b4ca469b07309c508d5a9a41e9dbcf1f32dec2ed7be027326544453dcaf9c2534919395fd826dc7768efc6cc4bfcc9f8
Description
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 efficiently work character by character without blocking on IO. Decoders perform character position tracking and support newline normalization.
Functions are also provided to fold over the characters of UTF encoded OCaml string values and to directly encode characters in OCaml Buffer.t values. Note that since OCaml 4.14, that functionality can be found in the Stdlib and you are encouraged to migrate to it.
Uutf has no dependency and is distributed under the ISC license.
Home page: http://erratique.ch/software/uutf
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>
README
Uutf — Non-blocking streaming Unicode codec for OCaml
v1.0.3
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 efficiently work character by character without blocking on IO. Decoders perform character position tracking and support newline normalization.
Functions are also provided to fold over the characters of UTF encoded OCaml string values and to directly encode characters in OCaml Buffer.t values. Note that since OCaml 4.14, that functionality can be found in the Stdlib and you are encouraged to migrate to it.
Uutf has no dependency and is distributed under the ISC license.
Home page: http://erratique.ch/software/uutf
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>
Installation
Uutf can be installed with opam
:
opam install uutf
If you don't use opam
consult the opam
file for build instructions.
Documentation
The documentation and API reference is automatically generated by from the source interfaces. It can be consulted online or via odig doc uutf
.
Sample programs
Sample programs are located in the test
directory of the distribution. They can be built and run with:
topkg build --test true && topkg test
The resulting binaries are in _build/test
:
test.native
tests the library, nothing should fail.utftrip.native
, among other things, reads unicode onstdin
and rewrites it onstdout
. Invoke with--help
for more information. Depends on Cmdliner.
Dependencies (4)
-
topkg
build & >= "1.0.3"
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.03.0"
Dev Dependencies
None
Used by (77)
-
alcotest
>= "1.2.0"
- archsat
-
catala
>= "0.8.0"
-
chamo
>= "3.0"
-
coin
< "0.1.2"
- conan
- confero
-
containers
>= "2.1"
- containers-thread
- crowbar
- csvtool
- dkml-workflows
- dolmen_type
- dotenv
-
ecaml
>= "v0.17.0"
- embedded_ocaml_templates
- emile
-
ezjsonm
>= "1.3.0"
-
grace
>= "0.2.0"
- hardcaml-bloop
-
hvsock
>= "2.0.0"
-
inquire
= "0.2.1" | >= "0.3.1"
-
iri
>= "0.4.0"
-
irmin
>= "2.3.0"
-
irmin-bench
>= "2.7.0"
-
jingoo
>= "1.2.13"
-
jsonm
>= "1.0.0"
-
jupyter-kernel
>= "0.3"
- labrys
- learn-ocaml
- lsp
-
markup
>= "0.7.3"
- matita
- mrmime
- multipart_form
- nomad
-
notty
>= "0.2.0"
-
ocaml-lsp-server
>= "1.10.5" & < "1.18.0"
-
ocamlformat
>= "0.9" & < "0.25.1"
- ocamlformat-lib
-
ocamlformat-rpc
< "0.21.0"
- octez-internal-libs
- octez-libs
-
oidc
< "0.1.1"
-
omd
>= "2.0.0~alpha3"
-
opam-core
>= "2.2.0~alpha"
- opine
-
otfm
>= "0.3.0"
- otoml
- owi
-
pecu
< "0.2"
-
printbox
>= "0.3" & < "0.6"
- printbox-text
-
progress
>= "0.2.0"
-
rdf
>= "0.11.0"
- repr
-
rosetta
< "0.3.0"
- slug
- solidity-typechecker
- stk
-
stog
>= "0.17.0"
- stringCodepointSplitter
- terminal
- terml
-
textutils
>= "v0.15.0"
-
textutils_kernel
>= "v0.15.0"
- tezos-micheline
- tty
-
tyxml
>= "4.1.0"
- tyxml-syntax
-
ubase
< "0.20"
- unstrctrd
-
uucp
>= "2.0.0" & < "15.1.0"
-
uuuu
< "0.2.0"
-
xtmpl
>= "0.16.0"
- yuscii
-
zed
>= "3.2.0"
Conflicts (1)
-
cmdliner
< "0.9.8"