Lines Matching refs:cc

1036       CClassNode* cc = NCCLASS(node);  in onig_node_free()  local
1038 if (IS_NCCLASS_SHARE(cc)) return ; in onig_node_free()
1039 if (cc->mbuf) in onig_node_free()
1040 bbuf_free(cc->mbuf); in onig_node_free()
1119 initialize_cclass(CClassNode* cc) in initialize_cclass() argument
1121 BITSET_CLEAR(cc->bs); in initialize_cclass()
1123 cc->flags = 0; in initialize_cclass()
1124 cc->mbuf = NULL; in initialize_cclass()
1143 CClassNode* cc; in node_new_cclass_by_codepoint_range() local
1149 cc = NCCLASS(node); in node_new_cclass_by_codepoint_range()
1150 if (not != 0) NCCLASS_SET_NOT(cc); in node_new_cclass_by_codepoint_range()
1152 BITSET_CLEAR(cc->bs); in node_new_cclass_by_codepoint_range()
1160 BITSET_SET_BIT(cc->bs, j); in node_new_cclass_by_codepoint_range()
1168 cc->mbuf = NULL; in node_new_cclass_by_codepoint_range()
1182 cc->mbuf = bbuf; in node_new_cclass_by_codepoint_range()
1973 and_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc) in and_cclass() argument
1983 not2 = IS_NCCLASS_NOT(cc); in and_cclass()
1984 bsr2 = cc->bs; in and_cclass()
1985 buf2 = cc->mbuf; in and_cclass()
2031 or_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc) in or_cclass() argument
2041 not2 = IS_NCCLASS_NOT(cc); in or_cclass()
2042 bsr2 = cc->bs; in or_cclass()
2043 buf2 = cc->mbuf; in or_cclass()
3751 add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not, in add_ctype_to_cc_by_range() argument
3767 r = add_code_range_to_buf(&(cc->mbuf), j, in add_ctype_to_cc_by_range()
3775 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3781 r = add_code_range_to_buf(&(cc->mbuf), in add_ctype_to_cc_by_range()
3796 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3801 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3809 r = add_code_range_to_buf(&(cc->mbuf), prev, in add_ctype_to_cc_by_range()
3816 r = add_code_range_to_buf(&(cc->mbuf), prev, 0x7fffffff); in add_ctype_to_cc_by_range()
3825 add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env) in add_ctype_to_cc() argument
3834 return add_ctype_to_cc_by_range(cc, ctype, not, env->enc, sb_out, ranges); in add_ctype_to_cc()
3856 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3858 ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf); in add_ctype_to_cc()
3863 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3873 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3879 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3881 ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf); in add_ctype_to_cc()
3888 if (IS_CODE_SB_WORD(enc, c)) BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3890 ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf); in add_ctype_to_cc()
3896 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3910 parse_posix_bracket(CClassNode* cc, UChar** src, UChar* end, ScanEnv* env) in parse_posix_bracket() argument
3956 r = add_ctype_to_cc(cc, pb->ctype, not, env); in parse_posix_bracket()
4021 CClassNode* cc; in parse_char_property() local
4028 cc = NCCLASS(*np); in parse_char_property()
4029 r = add_ctype_to_cc(cc, ctype, 0, env); in parse_char_property()
4031 if (tok->u.prop.not != 0) NCCLASS_SET_NOT(cc); in parse_char_property()
4051 next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type, in next_state_class() argument
4061 BITSET_SET_BIT(cc->bs, (int )(*vs)); in next_state_class()
4063 r = add_code_range(&(cc->mbuf), env, *vs, *vs); in next_state_class()
4074 next_state_val(CClassNode* cc, OnigCodePoint *vs, OnigCodePoint v, in next_state_val() argument
4084 BITSET_SET_BIT(cc->bs, (int )(*vs)); in next_state_val()
4086 r = add_code_range(&(cc->mbuf), env, *vs, *vs); in next_state_val()
4103 bitset_set_range(cc->bs, (int )*vs, (int )v); in next_state_val()
4106 r = add_code_range(&(cc->mbuf), env, *vs, v); in next_state_val()
4120 bitset_set_range(cc->bs, (int )*vs, (int )(v < 0xff ? v : 0xff)); in next_state_val()
4121 r = add_code_range(&(cc->mbuf), env, (OnigCodePoint )*vs, v); in next_state_val()
4180 CClassNode *cc, *prev_cc; in parse_char_class() local
4210 cc = NCCLASS(node); in parse_char_class()
4302 r = next_state_val(cc, &vs, v, &val_israw, in_israw, in_type, &val_type, in parse_char_class()
4308 r = parse_posix_bracket(cc, &p, end, env); in parse_char_class()
4321 r = add_ctype_to_cc(cc, tok->u.prop.ctype, tok->u.prop.not, env); in parse_char_class()
4325 r = next_state_class(cc, &vs, &val_type, &state, env); in parse_char_class()
4335 r = add_ctype_to_cc(cc, ctype, tok->u.prop.not, env); in parse_char_class()
4403 r = or_cclass(cc, acc, env->enc); in parse_char_class()
4414 r = next_state_val(cc, &vs, 0, &val_israw, 0, val_type, in parse_char_class()
4423 r = and_cclass(prev_cc, cc, env->enc); in parse_char_class()
4425 bbuf_free(cc->mbuf); in parse_char_class()
4428 prev_cc = cc; in parse_char_class()
4429 cc = &work_cc; in parse_char_class()
4431 initialize_cclass(cc); in parse_char_class()
4454 r = next_state_val(cc, &vs, 0, &val_israw, 0, val_type, in parse_char_class()
4460 r = and_cclass(prev_cc, cc, env->enc); in parse_char_class()
4462 bbuf_free(cc->mbuf); in parse_char_class()
4463 cc = prev_cc; in parse_char_class()
4467 NCCLASS_SET_NOT(cc); in parse_char_class()
4469 NCCLASS_CLEAR_NOT(cc); in parse_char_class()
4470 if (IS_NCCLASS_NOT(cc) && in parse_char_class()
4474 is_empty = (IS_NULL(cc->mbuf) ? 1 : 0); in parse_char_class()
4476 BITSET_IS_EMPTY(cc->bs, is_empty); in parse_char_class()
4483 BITSET_SET_BIT(cc->bs, NEWLINE_CODE); in parse_char_class()
4485 add_code_range(&(cc->mbuf), env, NEWLINE_CODE, NEWLINE_CODE); in parse_char_class()
4493 if (cc != NCCLASS(*np)) in parse_char_class()
4494 bbuf_free(cc->mbuf); in parse_char_class()
4898 CClassNode* cc = NCCLASS(node); in i_free_shared_class() local
4899 if (IS_NOT_NULL(cc->mbuf)) xfree(cc->mbuf); in i_free_shared_class()
4924 clear_not_flag_cclass(CClassNode* cc, OnigEncoding enc) in clear_not_flag_cclass() argument
4929 if (IS_NCCLASS_NOT(cc)) { in clear_not_flag_cclass()
4930 bitset_invert(cc->bs); in clear_not_flag_cclass()
4933 r = not_code_range_buf(enc, cc->mbuf, &tbuf); in clear_not_flag_cclass()
4936 bbuf_free(cc->mbuf); in clear_not_flag_cclass()
4937 cc->mbuf = tbuf; in clear_not_flag_cclass()
4940 NCCLASS_CLEAR_NOT(cc); in clear_not_flag_cclass()
4949 CClassNode* cc; member
4960 CClassNode* cc; in i_apply_case_fold() local
4965 cc = iarg->cc; in i_apply_case_fold()
4966 bs = cc->bs; in i_apply_case_fold()
4969 int is_in = onig_is_code_in_cc(env->enc, from, cc); in i_apply_case_fold()
4971 if ((is_in != 0 && !IS_NCCLASS_NOT(cc)) || in i_apply_case_fold()
4972 (is_in == 0 && IS_NCCLASS_NOT(cc))) { in i_apply_case_fold()
4974 add_code_range(&(cc->mbuf), env, *to, *to); in i_apply_case_fold()
4983 if (IS_NCCLASS_NOT(cc)) clear_not_flag_cclass(cc, env->enc); in i_apply_case_fold()
4984 add_code_range(&(cc->mbuf), env, *to, *to); in i_apply_case_fold()
4987 if (IS_NCCLASS_NOT(cc)) { in i_apply_case_fold()
5001 if (onig_is_code_in_cc(env->enc, from, cc) in i_apply_case_fold()
5003 && !IS_NCCLASS_NOT(cc) in i_apply_case_fold()
5187 CClassNode* cc; in parse_exp() local
5230 cc = NCCLASS(*np); in parse_exp()
5231 NCCLASS_SET_SHARE(cc); in parse_exp()
5243 cc = NCCLASS(*np); in parse_exp()
5244 add_ctype_to_cc(cc, tok->u.prop.ctype, 0, env); in parse_exp()
5245 if (tok->u.prop.not != 0) NCCLASS_SET_NOT(cc); in parse_exp()
5266 CClassNode* cc; in parse_exp() local
5271 cc = NCCLASS(*np); in parse_exp()
5276 iarg.cc = cc; in parse_exp()