[utils] adding string_is_digit function, similar to Python\'s (i.e. counts if it's in the Nd unicode category)

This commit is contained in:
Al
2017-03-15 13:04:39 -04:00
parent 1a1f0a44d2
commit 1b2696b3b5
2 changed files with 27 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ bool utf8_is_symbol(int cat);
bool utf8_is_separator(int cat);
bool utf8_is_whitespace(int32_t ch);
bool string_is_digit(char *str, size_t len);
bool string_is_ignorable(char *str, size_t len);
ssize_t string_next_hyphen_index(char *str, size_t len);