Logo Search packages:      
Sourcecode: verbiste version File versions

string FrenchVerbDictionary::getLatin1XmlNodeText ( xmlDocPtr  doc,
xmlNodePtr  node 
) throw (int)

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

Parameters:
doc the XML document
node the node of the XML document whose contents are to be extracted
Returns:
a Latin-1 string representing the contents of the node; this string is empty the requested node 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 318 of file FrenchVerbDictionary.cpp.

References utf8ToLatin1().

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


Generated by  Doxygen 1.6.0   Back to index