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
}
Esempio 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)
}