[utils] Common prefix-style return value instead of a utf8 strcmp

This commit is contained in:
Al
2015-06-11 10:59:51 -04:00
parent aad5f3edd3
commit ab5ea6d791
2 changed files with 15 additions and 33 deletions

View File

@@ -50,8 +50,8 @@ ssize_t utf8proc_iterate_reversed(const uint8_t *str, ssize_t start, int32_t *ds
char *utf8_lower(const char *s); // returns a copy, caller frees
int utf8_compare(const char *str1, const char *str2);
int utf8_compare_len(const char *str1, const char *str2, size_t len);
int utf8_compare_ignore_separators(const char *str1, const char *str2);
int utf8_compare_len_ignore_separators(const char *str1, const char *str2, size_t len);
size_t utf8_common_prefix_ignore_separators(const char *str1, const char *str2);
size_t utf8_common_prefix_len_ignore_separators(const char *str1, const char *str2, size_t len);
bool utf8_is_hyphen(int32_t ch);
bool utf8_is_letter(int cat);