[expansion] removing the self param from address_dictionary methods, adding search_address_dictionaries method which searches a string for phrases in a particular language

This commit is contained in:
Al
2015-07-22 03:51:14 -04:00
parent 3da4b5d8c2
commit f61d993157
3 changed files with 43 additions and 17 deletions

View File

@@ -64,7 +64,7 @@ int main(int argc, char **argv) {
char_array_cat(key, expansion_rule.phrase);
char *token = char_array_get_string(key);
if (!address_dictionary_add_expansion(address_dict, token, canonical, language, dictionary_id, address_components)) {
if (!address_dictionary_add_expansion(token, canonical, language, dictionary_id, address_components)) {
log_error("Could not add expansion {%s, %s}\n", language, expansion_rule.phrase);
exit(EXIT_FAILURE);
}