diff options
author | K.Kosako <kosako@sofnec.co.jp> | 2018-10-09 13:27:55 +0900 |
---|---|---|
committer | K.Kosako <kosako@sofnec.co.jp> | 2018-10-09 13:27:55 +0900 |
commit | c086d3caec0722f84183167648d20bf8d12597bf (patch) | |
tree | eb00b88a6a0776bb675592f7f6227cc856cd54ad | |
parent | a3010490b6091126948edd6c39680aa6b27dd7c2 (diff) | |
download | oniguruma-c086d3caec0722f84183167648d20bf8d12597bf.zip oniguruma-c086d3caec0722f84183167648d20bf8d12597bf.tar.gz oniguruma-c086d3caec0722f84183167648d20bf8d12597bf.tar.bz2 |
remove tabs
-rw-r--r-- | src/regcomp.c | 18 | ||||
-rw-r--r-- | src/regparse.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/regcomp.c b/src/regcomp.c index 1686bb2..1bb0070 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -3665,9 +3665,9 @@ expand_case_fold_string(Node* node, regex_t* reg) is_good = is_good_case_fold_items_for_search(reg->enc, len, n, items); if (IS_NOT_NULL(snode) || - (is_good && - /* expand single char case: ex. /(?i:a)/ */ - !(p == start && p + len >= end))) { + (is_good && + /* expand single char case: ex. /(?i:a)/ */ + ! (p == start && p + len >= end))) { if (IS_NULL(snode)) { if (IS_NULL(root) && IS_NOT_NULL(prev_node)) { top_root = root = onig_node_list_add(NULL_NODE, prev_node); @@ -4620,8 +4620,8 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env) static int set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand, - UChar* s, UChar* end, - UChar skip[], int* roffset) + UChar* s, UChar* end, + UChar skip[], int* roffset) { int i, j, k, len, offset; int n, clen; @@ -4637,8 +4637,8 @@ set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand, while (1) { len = enclen(enc, p); if (p + len >= end) { - if (len == 1) offset = 1; - else offset = 0; + if (len == 1) offset = 1; + else offset = 0; break; } p += len; @@ -4675,7 +4675,7 @@ set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand, ONIGENC_CODE_TO_MBC(enc, items[k].code[0], buf); for (j = 0; j < clen; j++) { z = len - j + (offset - 1); - if (z <= 0) break; + if (z <= 0) break; if (skip[buf[j]] > z) skip[buf[j]] = z; } @@ -5698,7 +5698,7 @@ set_optimize_exact(regex_t* reg, OptStr* e) reg->exact, reg->exact_end, reg->map, &(reg->map_offset)); if (r != 0) return r; - reg->optimize = OPTIMIZE_STR_CASE_FOLD_FAST; + reg->optimize = OPTIMIZE_STR_CASE_FOLD_FAST; } } } diff --git a/src/regparse.c b/src/regparse.c index cc4bb04..0194bf8 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -7980,7 +7980,7 @@ parse_exp(Node** np, OnigToken* tok, int term, UChar** src, UChar* end, int ascii_mode = IS_WORD_ASCII(env->options) && IS_WORD_ANCHOR_TYPE(tok->u.anchor) ? 1 : 0; *np = onig_node_new_anchor(tok->u.anchor, ascii_mode); - CHECK_NULL_RETURN_MEMERR(*np); + CHECK_NULL_RETURN_MEMERR(*np); } break; |