|
GnuCash
5.6-150-g038405b370+
|
api for GnuCash version 2 XML-based file format More...
Go to the source code of this file.
Data Structures | |
| struct | conv_type |
Functions | |
| gint | gnc_xml2_find_ambiguous (const gchar *filename, GList *encodings, GHashTable **unique, GHashTable **ambiguous, GList **impossible) |
| Read a file as plain byte stream to find words that are not completely ASCII. More... | |
| gboolean | gnc_xml2_parse_with_subst (GncXmlBackend *xml_be, QofBook *book, GHashTable *subst) |
| Parse a file in push mode, but replace byte sequences in the file given a hash table of substitutions. More... | |
api for GnuCash version 2 XML-based file format
Definition in file io-gncxml-v2.h.
| gint gnc_xml2_find_ambiguous | ( | const gchar * | filename, |
| GList * | encodings, | ||
| GHashTable ** | unique, | ||
| GHashTable ** | ambiguous, | ||
| GList ** | impossible | ||
| ) |
Read a file as plain byte stream to find words that are not completely ASCII.
On error, unique, ambiguous and impossible will be filled up to that point, -1 will be returned.
| filename | Name of the file to read. |
| encodings | List of encodings to check words for, each begin one a GQuark in a pointer. |
| unique | Location used for a hash table for unique solutions, if not NULL. The byte sequence is the key, successful_conversion the value. |
| ambiguous | Location used for a hash table for ambiguous byte sequences, if not NULL. The byte sequences is the key, a list of successful_conversions the value. |
| impossible | Location used for a list for undecodable byte sequences, if not NULL. |
Definition at line 1791 of file io-gncxml-v2.cpp.
| gboolean gnc_xml2_parse_with_subst | ( | GncXmlBackend * | xml_be, |
| QofBook * | book, | ||
| GHashTable * | subst | ||
| ) |
Parse a file in push mode, but replace byte sequences in the file given a hash table of substitutions.
| subst | hash table with keys and values of type gchar* |
Definition at line 2130 of file io-gncxml-v2.cpp.
1.8.14