Kouhei Sutou
null+****@clear*****
Mon Jul 27 17:45:27 JST 2015
Kouhei Sutou 2015-07-27 17:45:27 +0900 (Mon, 27 Jul 2015) New Revision: 73c15588d1e9763f1c43ac5ae12cbb6d00056402 https://github.com/groonga/groonga/commit/73c15588d1e9763f1c43ac5ae12cbb6d00056402 Message: mecab: use grn_strcasecmp() Modified files: plugins/tokenizers/mecab.c Modified: plugins/tokenizers/mecab.c (+6 -6) =================================================================== --- plugins/tokenizers/mecab.c 2015-07-27 17:44:51 +0900 (bade2f9) +++ plugins/tokenizers/mecab.c 2015-07-27 17:45:27 +0900 (94a4983) @@ -64,14 +64,14 @@ mecab_global_error_message(void) static grn_encoding translate_mecab_charset_to_grn_encoding(const char *charset) { - if (strcasecmp(charset, "euc-jp") == 0) { + if (grn_strcasecmp(charset, "euc-jp") == 0) { return GRN_ENC_EUC_JP; - } else if (strcasecmp(charset, "utf-8") == 0 || - strcasecmp(charset, "utf8") == 0) { + } else if (grn_strcasecmp(charset, "utf-8") == 0 || + grn_strcasecmp(charset, "utf8") == 0) { return GRN_ENC_UTF8; - } else if (strcasecmp(charset, "shift_jis") == 0 || - strcasecmp(charset, "shift-jis") == 0 || - strcasecmp(charset, "sjis") == 0) { + } else if (grn_strcasecmp(charset, "shift_jis") == 0 || + grn_strcasecmp(charset, "shift-jis") == 0 || + grn_strcasecmp(charset, "sjis") == 0) { return GRN_ENC_SJIS; } return GRN_ENC_NONE; -------------- next part -------------- HTML����������������������������...Download