package stk_iconv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.