package uutf

  1. Overview
  2. Docs
Non-blocking streaming Unicode codec for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

uutf-1.0.1.tbz
sha256=123b26e7a471f2c5bd0fce454ccf515d299610ec356e321241fae0f75833e9be
md5=b8535f974027357094c5cdb4bf03a21b

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.

Uutf has no dependency and is distributed under the ISC license.

README

Uutf — Non-blocking streaming Unicode codec for OCaml

v1.0.1

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.

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 on stdin and rewrites it on stdout. Invoke with --help for more information. Depends on Cmdliner.

Dependencies (5)

  1. uchar
  2. topkg build
  3. ocamlbuild build
  4. ocamlfind build
  5. ocaml >= "4.01.0" & < "5.0"

Dev Dependencies

None

Used by (67)

  1. alcotest >= "1.2.0"
  2. archsat
  3. chamo >= "3.0"
  4. coin < "0.1.2"
  5. conan
  6. confero
  7. containers >= "2.1"
  8. containers-thread
  9. crowbar
  10. csvtool
  11. dolmen_type
  12. dotenv
  13. embedded_ocaml_templates
  14. emile
  15. ezjsonm >= "1.3.0"
  16. grace >= "0.2.0"
  17. hardcaml-bloop
  18. hvsock >= "2.0.0"
  19. inquire = "0.2.1" | >= "0.3.1"
  20. iri >= "0.4.0"
  21. irmin >= "2.3.0"
  22. irmin-bench >= "2.7.0"
  23. jingoo >= "1.2.13"
  24. jsonm >= "1.0.0"
  25. jupyter-kernel >= "0.3"
  26. labrys
  27. learn-ocaml
  28. lsp < "1.10.5"
  29. markup >= "0.7.3"
  30. matita
  31. mrmime
  32. multipart_form
  33. notty >= "0.2.0"
  34. ocamlformat >= "0.9" & < "0.25.1"
  35. ocamlformat-lib
  36. ocamlformat-rpc < "0.21.0"
  37. octez-libs
  38. oidc < "0.1.1"
  39. omd >= "2.0.0~alpha3"
  40. opam-core >= "2.2.0~alpha"
  41. opine
  42. otfm >= "0.3.0"
  43. otoml
  44. owi
  45. pecu < "0.2"
  46. printbox >= "0.3" & < "0.6"
  47. printbox-text
  48. progress >= "0.2.0"
  49. rdf >= "0.11.0" & < "1.0.0"
  50. repr
  51. rosetta < "0.3.0"
  52. slug
  53. solidity-typechecker
  54. stk
  55. stog >= "0.17.0" & < "1.0.0"
  56. stringCodepointSplitter
  57. terminal
  58. tezos-micheline
  59. tyxml >= "4.1.0"
  60. tyxml-syntax
  61. ubase < "0.20"
  62. unstrctrd
  63. uucp >= "2.0.0" & < "15.1.0"
  64. uuuu < "0.2.0"
  65. xtmpl >= "0.16.0"
  66. yuscii
  67. zed >= "3.2.0"

Conflicts (1)

  1. cmdliner < "0.9.6"
OCaml

Innovation. Community. Security.