unidecode

package module
v0.0.0-...-fd1463e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2017 License: MIT Imports: 0 Imported by: 5

README

Unidecode

GoDoc Build Status

Unidecode transliterates non-latin characters to their latin equivalents.

This library is a straight port of the Text::Unidecode Perl library.

Examples

package main

import (
	"github.com/go2c/unidecode"
)

func main() {
	println(unidecode.Unidecode("北亰"))         // "Bei Jing "
	println(unidecode.Unidecode("Чебурашка"))   // "Cheburashka"
}

License

The table.go file is a translation of the original x*.pm files, and as such is subject to their original license.

Anything else is subject to the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Table = map[rune]string{}/* 47319 elements not displayed */

Functions

func Unidecode

func Unidecode(input string) string

`Unidecode` transliterates non-latin characters to their latin equivalents.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL