Logo Search packages:      
Sourcecode: verbiste version File versions

string FrenchVerbDictionary::getLatin1XmlProp ( xmlNodePtr  node,
const char *  propName 
) throw (int)

Returns the content of an XML property in Latin-1.

Parameters:
node the node of the XML document
propName the name of the property to extract
Returns:
a Latin-1 string representing the contents of the property; this string is empty the requested property does not exist
Exceptions:
int errno value set by iconv(3), in the case of a UTF-8 to Latin-1 conversion error

Definition at line 329 of file FrenchVerbDictionary.cpp.

References utf8ToLatin1().

{
    xmlChar *s = getProp(node, propName);
    if (s == NULL)
      return string();
    return utf8ToLatin1((char *) s);
}


Generated by  Doxygen 1.6.0   Back to index