[utils] string_utils category functions take a category instead of a codepoint
This commit is contained in:
@@ -30,13 +30,13 @@ uint string_translate(char *str, size_t len, char *word_chars, char *word_repls,
|
||||
|
||||
char *utf8_reversed_string(const char *s); // returns a copy, caller frees
|
||||
ssize_t utf8proc_iterate_reversed(const uint8_t *str, ssize_t start, int32_t *dst);
|
||||
bool utf8_is_letter(int32_t ch);
|
||||
bool utf8_is_number(int32_t ch);
|
||||
bool utf8_is_letter_or_number(int32_t ch);
|
||||
bool utf8_is_hyphen(int32_t ch);
|
||||
bool utf8_is_punctuation(int32_t ch);
|
||||
bool utf8_is_symbol(int32_t ch);
|
||||
bool utf8_is_separator(int32_t ch);
|
||||
bool utf8_is_letter(int cat);
|
||||
bool utf8_is_number(int cat);
|
||||
bool utf8_is_letter_or_number(int cat);
|
||||
bool utf8_is_hyphen(int cat);
|
||||
bool utf8_is_punctuation(int cat);
|
||||
bool utf8_is_symbol(int cat);
|
||||
bool utf8_is_separator(int cat);
|
||||
|
||||
size_t string_ltrim(char *str);
|
||||
size_t string_rtrim(char *str);
|
||||
|
||||
Reference in New Issue
Block a user