Lines Matching refs:sn

74     StrNode* sn = NSTR(a);  in swap_node()  local
75 if (sn->capa == 0) { in swap_node()
76 int len = sn->end - sn->s; in swap_node()
77 sn->s = sn->buf; in swap_node()
78 sn->end = sn->s + len; in swap_node()
83 StrNode* sn = NSTR(b); in swap_node() local
84 if (sn->capa == 0) { in swap_node()
85 int len = sn->end - sn->s; in swap_node()
86 sn->s = sn->buf; in swap_node()
87 sn->end = sn->s + len; in swap_node()
463 StrNode* sn; in compile_length_string_node() local
465 sn = NSTR(node); in compile_length_string_node()
466 if (sn->end <= sn->s) in compile_length_string_node()
471 p = prev = sn->s; in compile_length_string_node()
472 SAFE_ENC_LEN(enc, p, sn->end, prev_len); in compile_length_string_node()
477 for (; p < sn->end; ) { in compile_length_string_node()
478 SAFE_ENC_LEN(enc, p, sn->end, len); in compile_length_string_node()
497 compile_length_string_raw_node(StrNode* sn, regex_t* reg) in compile_length_string_raw_node() argument
499 if (sn->end <= sn->s) in compile_length_string_raw_node()
502 return add_compile_string_length(sn->s, 1 /* sb */, sn->end - sn->s, reg, 0); in compile_length_string_raw_node()
511 StrNode* sn; in compile_string_node() local
513 sn = NSTR(node); in compile_string_node()
514 if (sn->end <= sn->s) in compile_string_node()
517 end = sn->end; in compile_string_node()
520 p = prev = sn->s; in compile_string_node()
545 compile_string_raw_node(StrNode* sn, regex_t* reg) in compile_string_raw_node() argument
547 if (sn->end <= sn->s) in compile_string_raw_node()
550 return add_compile_string(sn->s, 1 /* sb */, sn->end - sn->s, reg, 0); in compile_string_raw_node()
2087 StrNode* sn = NSTR(node); in get_min_match_length() local
2088 *min = sn->end - sn->s; in get_min_match_length()
2171 StrNode* sn = NSTR(node); in get_max_match_length() local
2172 *max = sn->end - sn->s; in get_max_match_length()
2312 StrNode* sn = NSTR(node); in get_char_length_tree1() local
2313 UChar *s = sn->s; in get_char_length_tree1()
2314 while (s < sn->end) { in get_char_length_tree1()
2599 StrNode* sn = NSTR(node); in get_head_value_node() local
2601 if (sn->end <= sn->s) in get_head_value_node()
3195 StrNode* sn = NSTR(node); in update_string_node_case_fold() local
3197 end = sn->end; in update_string_node_case_fold()
3198 sbuf_size = (end - sn->s) * 2; in update_string_node_case_fold()
3204 p = sn->s; in update_string_node_case_fold()
3373 StrNode* sn = NSTR(node); in expand_case_fold_string() local
3377 start = sn->s; in expand_case_fold_string()
3378 end = sn->end; in expand_case_fold_string()
3768 StrNode* sn = NSTR(target); in setup_tree() local
3774 r = onig_node_str_cat(node, sn->s, sn->end); in setup_tree()
4582 StrNode* sn = NSTR(node); in optimize_node_left() local
4583 int slen = sn->end - sn->s; in optimize_node_left()
4587 concat_opt_exact_info_str(&opt->exb, sn->s, sn->end, in optimize_node_left()
4590 add_char_opt_map_info(&opt->map, *(sn->s), env->enc); in optimize_node_left()
4598 int n = onigenc_strlen(env->enc, sn->s, sn->end); in optimize_node_left()
4602 concat_opt_exact_info_str(&opt->exb, sn->s, sn->end, in optimize_node_left()
4607 r = add_char_amb_opt_map_info(&opt->map, sn->s, sn->end, in optimize_node_left()