Kouhei Sutou
null+****@clear*****
Tue Mar 10 16:50:28 JST 2015
Kouhei Sutou 2015-03-10 16:50:28 +0900 (Tue, 10 Mar 2015) New Revision: a6250502aadc5170250e0fea5262279b69a07b44 https://github.com/groonga/groonga/commit/a6250502aadc5170250e0fea5262279b69a07b44 Message: Use string_have_*() style Modified files: lib/operator.c Modified: lib/operator.c (+4 -4) =================================================================== --- lib/operator.c 2015-03-10 16:48:55 +0900 (3c0f454) +++ lib/operator.c 2015-03-10 16:50:28 +0900 (65faa44) @@ -597,9 +597,9 @@ grn_operator_exec_greater_equal(grn_ctx *ctx, grn_obj *x, grn_obj *y) } static grn_bool -string_is_contained(grn_ctx *ctx, - const char *text, unsigned int text_len, - const char *sub_text, unsigned int sub_text_len) +string_have_sub_text(grn_ctx *ctx, + const char *text, unsigned int text_len, + const char *sub_text, unsigned int sub_text_len) { /* TODO: Use more fast algorithm such as Boyer-Moore algorithm that * is used in snip.c. */ @@ -641,7 +641,7 @@ exec_text_operator(grn_ctx *ctx, switch (op) { case GRN_OP_MATCH : - matched = string_is_contained(ctx, target, target_len, query, query_len); + matched = string_have_sub_text(ctx, target, target_len, query, query_len); break; case GRN_OP_PREFIX : matched = string_have_prefix(ctx, target, target_len, query, query_len); -------------- next part -------------- HTML����������������������������...Download