Ejemplo n.º 1
0
func (v *Varnam) ReverseTransliterate(text string) (string, error) {
	var output *C.char
	rc := C.varnam_reverse_transliterate(v.handle, C.CString(text), &output)
	if rc != C.VARNAM_SUCCESS {
		errorCode := (int)(rc)
		return "", &VarnamError{errorCode: errorCode, message: v.getVarnamError(errorCode)}
	}
	return C.GoString(output), nil
}
Ejemplo n.º 2
0
func (v *Varnam) ReverseTransliterate(text string) string {
	var output *C.char
	C.varnam_reverse_transliterate(v.handle, C.CString(text), &output)
	return C.GoString(output)
}