[numex] Adding a replace_numeric_expressions method (returns NULL if no replacements were made), fixing lengths in situations where two unrelated numbers are joined by a stopword e.g. in the phrase "one and one" the "and" acts as a delimiter vs a phrase where the stopword acts as a joiner like "one hundred and twenty"

This commit is contained in:
Al
2015-07-24 15:30:58 -04:00
parent 12959aa483
commit 359cd62e20
2 changed files with 49 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ typedef struct numex_result {
VECTOR_INIT(numex_result_array, numex_result_t)
char *replace_numeric_expressions(char *str, char *lang);
numex_result_array *convert_numeric_expressions(char *str, char *lang);
char *get_ordinal_suffix(char *numeric_string, char *lang, numex_result_t result);