package stk_iconv

  1. Overview
  2. Docs
Bindings to GNU libiconv

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-stk-0.3.0.tar.bz2
md5=bf3724827aa00f2b5072a9f5e5e9293f
sha512=c7804040165317533b1bbaa6a23374a0bce5ba6976a2f48b49c90aa43c510b03134a1b2c353485365f4dd0cee8cb72d7fbe7558ee52e758db886771e262262d8

doc/stk_iconv/Iconv/index.html

Module IconvSource

Bindings to libiconv.

Sourcetype iconv

A libiconv iconv_t value

Sourceval iconv_open : fromcode:string -> tocode:string -> iconv

See iconv_open documentation. Raises Unix_error in case something goes wrong.

Sourceval iconv_close : iconv -> unit

See iconv_close documentation. Raises Unix_error in case something goes wrong.

Sourceval iconv : iconv -> string -> string

Applies the given converter to the given string. Raises Unix_error in case something goes wrong.

Sourceval iconv_string : fromcode:string -> tocode:string -> string -> string

Convenient function to create a character converter, apply it on the given string, close the converted and return the converted string. Raises Unix_error in case something goes wrong.

Sourceval encoding_names : string list

Static list of encoding names handled by iconv.

OCaml

Innovation. Community. Security.