inline phrase_array *trie_search_tokens(trie_t *self, char *str, token_array *tokens) { phrase_array *phrases = NULL; if (!trie_search_tokens_with_phrases(self, str, tokens, &phrases)) { return NULL; } return phrases; }
bool search_geodb_tokens_with_phrases(char *str, token_array *tokens, phrase_array **phrases) { if (str == NULL) return false; return trie_search_tokens_with_phrases(geodb->names, str, tokens, phrases); }