Unidecode.Decoder (unidecode v1.0.2)

View Source

This module takes care of transliterate a single grapheme. It's only documented so you can use a better strategy to transliterate larger texts.

Summary

Functions

Returns the transliteration of a single grapheme.

Functions

decode(c)

@spec decode(String.t()) :: String.t()

Returns the transliteration of a single grapheme.

Examples

iex> Unidecode.Decoder.decode("+")
"+"
iex> Unidecode.Decoder.decode("[")
"["
iex> Unidecode.Decoder.decode("u")
"u"
iex> Unidecode.Decoder.decode("⠋")
"f"
iex> Unidecode.Decoder.decode("ニ")
"ni"
iex> Unidecode.Decoder.decode("Р")
"R"
iex> Unidecode.Decoder.decode("ç")
"c"