Lines Matching refs:np

4028 parse_char_property(Node** np, OnigToken* tok, UChar** src, UChar* end,

4037 *np = node_new_cclass();
4038 CHECK_NULL_RETURN_MEMERR(*np);
4039 cc = NCCLASS(*np);
4183 parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
4198 *np = NULL_NODE;
4218 *np = node = node_new_cclass();
4503 if (cc != NCCLASS(*np))
4505 onig_node_free(*np);
4513 parse_enclose(Node** np, OnigToken* tok, int term, UChar** src, UChar* end,
4529 *np = NULL;
4544 r = parse_subexp(np, tok, term, &p, end, env);
4551 *np = onig_node_new_anchor(ANCHOR_PREC_READ);
4554 *np = onig_node_new_anchor(ANCHOR_PREC_READ_NOT);
4557 *np = node_new_enclose(ENCLOSE_STOP_BACKTRACK);
4573 *np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND);
4575 *np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND_NOT);
4600 *np = node_new_enclose_memory(env->option, 1);
4601 CHECK_NULL_RETURN_MEMERR(*np);
4602 NENCLOSE(*np)->regnum = num;
4630 *np = node_new_enclose_memory(env->option, 0);
4631 CHECK_NULL_RETURN_MEMERR(*np);
4634 onig_node_free(*np);
4638 onig_node_free(*np);
4641 NENCLOSE(*np)->regnum = num;
4693 *np = node_new_option(option);
4694 CHECK_NULL_RETURN_MEMERR(*np);
4707 *np = node_new_option(option);
4708 CHECK_NULL_RETURN_MEMERR(*np);
4709 NENCLOSE(*np)->target = target;
4728 *np = node_new_enclose_memory(env->option, 0);
4729 CHECK_NULL_RETURN_MEMERR(*np);
4732 NENCLOSE(*np)->regnum = num;
4735 CHECK_NULL_RETURN_MEMERR(*np);
4741 if (NTYPE(*np) == NT_ANCHOR)
4742 NANCHOR(*np)->target = target;
4744 NENCLOSE(*np)->target = target;
4745 if (NENCLOSE(*np)->type == ENCLOSE_MEMORY) {
4747 r = scan_env_set_mem_node(env, NENCLOSE(*np)->regnum, *np);
5048 parse_exp(Node** np, OnigToken* tok, int term,
5055 *np = NULL;
5063 *np = node_new_empty();
5068 r = parse_enclose(np, tok, TK_SUBEXP_CLOSE, src, end, env);
5075 env->option = NENCLOSE(*np)->option;
5081 NENCLOSE(*np)->target = target;
5097 *np = node_new_str(tok->backp, *src);
5098 CHECK_NULL_RETURN_MEMERR(*np);
5105 r = onig_node_str_cat(*np, tok->backp, *src);
5110 targetp = np;
5118 *np = node_new_str_raw_char((UChar )tok->u.c);
5119 CHECK_NULL_RETURN_MEMERR(*np);
5123 if (len == enclen(env->enc, NSTR(*np)->s)) {
5125 NSTRING_CLEAR_RAW(*np);
5138 (void )node_str_head_pad(NSTR(*np), rem, (UChar )0);
5139 if (len + rem == enclen(env->enc, NSTR(*np)->s)) {
5140 NSTRING_CLEAR_RAW(*np);
5148 r = node_str_cat_char(*np, (UChar )tok->u.c);
5162 *np = node_new_str_raw(buf, buf + num);
5164 *np = node_new_str(buf, buf + num);
5166 CHECK_NULL_RETURN_MEMERR(*np);
5182 *np = node_new_str(qstart, qend);
5183 CHECK_NULL_RETURN_MEMERR(*np);
5192 *np = node_new_ctype(tok->u.prop.ctype, tok->u.prop.not);
5193 CHECK_NULL_RETURN_MEMERR(*np);
5230 (st_data_t* )np)) {
5236 *np = node_new_cclass_by_codepoint_range(tok->u.prop.not,
5238 if (IS_NULL(*np)) {
5243 cc = NCCLASS(*np);
5249 (st_data_t )(UINTN)*np);
5255 *np = node_new_cclass();
5256 CHECK_NULL_RETURN_MEMERR(*np);
5257 cc = NCCLASS(*np);
5274 r = parse_char_property(np, tok, src, end, env);
5282 r = parse_char_class(np, tok, src, end, env);
5285 cc = NCCLASS(*np);
5301 Node* work = onig_node_new_alt(*np, iarg.alt_root);
5306 *np = work;
5313 *np = node_new_anychar();
5314 CHECK_NULL_RETURN_MEMERR(*np);
5318 *np = node_new_anychar();
5319 CHECK_NULL_RETURN_MEMERR(*np);
5322 NQTFR(qn)->target = *np;
5323 *np = qn;
5328 *np = node_new_backref(len,
5336 CHECK_NULL_RETURN_MEMERR(*np);
5349 *np = node_new_call(tok->u.call.name, tok->u.call.name_end, gnum);
5350 CHECK_NULL_RETURN_MEMERR(*np);
5357 *np = onig_node_new_anchor(tok->u.anchor);
5358 CHECK_NULL_RETURN_MEMERR(*np);
5367 *np = node_new_empty();
5368 CHECK_NULL_RETURN_MEMERR(*np);
5381 targetp = np;