[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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user