diff --git a/src/string_utils.h b/src/string_utils.h index 2ea01741..19781a50 100644 --- a/src/string_utils.h +++ b/src/string_utils.h @@ -13,6 +13,8 @@ extern "C" { #include "utf8proc/utf8proc.h" #include "vector.h" + #define MAX_UTF8_CHAR_SIZE 4 + // NOTE: this particular implementation works only for ASCII strings int string_compare_case_insensitive(const char *str1, const char *str2); int string_compare_n_case_insensitive(const char *str1, const char *str2, size_t len); diff --git a/src/transliteration_table_builder.c b/src/transliteration_table_builder.c index d101efb1..186b8c5c 100644 --- a/src/transliteration_table_builder.c +++ b/src/transliteration_table_builder.c @@ -17,8 +17,6 @@ Only used once at setup/make time, not overly concerned with optimization #include "utf8proc/utf8proc.h" -#define MAX_UTF8_CHAR_SIZE 4 - string_tree_t *regex_string_tree(char *regex, size_t len) { uint8_t *char_ptr = (uint8_t *)regex; char last_ch = '\0'; @@ -536,7 +534,6 @@ int main(int argc, char **argv) { log_debug("rule_key=%s\n", char_array_get_string(rule_key)); - size_t context_key_len; if (num_context_strings == 0) {