package stk_iconv

  1. Overview
  2. Docs
Bindings to GNU libiconv

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-stk-0.4.0.tar.bz2
md5=4a7d5aeecb002fa711a6eb002a544713
sha512=f2efc05917d5916980a8d09426b629028a748c00c19667b0bf4e0cf0c8811d80b5a693b95f662301bfbe3162cefd73e7f02e98cb5c1020876cbcf9fc81930434

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.