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: 9 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址