Lines Matching refs:sn
1535 str_node_split_last_char(StrNode* sn, OnigEncoding enc) in str_node_split_last_char() argument
1540 if (sn->end > sn->s) { in str_node_split_last_char()
1541 p = onigenc_get_prev_char_head(enc, sn->s, sn->end); in str_node_split_last_char()
1542 if (p && p > sn->s) { /* can be splitted. */ in str_node_split_last_char()
1543 n = node_new_str(p, sn->end); in str_node_split_last_char()
1544 if ((sn->flag & NSTR_RAW) != 0) in str_node_split_last_char()
1546 sn->end = (UChar* )p; in str_node_split_last_char()
1553 str_node_can_be_split(StrNode* sn, OnigEncoding enc) in str_node_can_be_split() argument
1555 if (sn->end > sn->s) { in str_node_can_be_split()
1556 return ((enclen(enc, sn->s) < sn->end - sn->s) ? 1 : 0); in str_node_can_be_split()
1563 node_str_head_pad(StrNode* sn, int num, UChar val) in node_str_head_pad() argument
1568 len = sn->end - sn->s; in node_str_head_pad()
1569 onig_strcpy(buf, sn->s, sn->end); in node_str_head_pad()
1570 onig_strcpy(&(sn->s[num]), buf, buf + len); in node_str_head_pad()
1571 sn->end += num; in node_str_head_pad()
1574 sn->s[i] = val; in node_str_head_pad()
4767 StrNode* sn = NSTR(target); in set_quantifier() local
4768 if (str_node_can_be_split(sn, env->enc)) { in set_quantifier()
4769 Node* n = str_node_split_last_char(sn, env->enc); in set_quantifier()