Lines Matching refs:rc
82 int rc = 0; in find_text_end() local
137 rc = errorcode; in find_text_end()
152 rc = PCRE2_ERROR_BADREPESCAPE; in find_text_end()
158 rc = PCRE2_ERROR_REPMISSINGBRACE; /* Terminator not found */ in find_text_end()
162 return rc; in find_text_end()
225 int rc; in pcre2_substitute() local
348 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->startchar)); in pcre2_substitute()
349 if (rc != 0) in pcre2_substitute()
367 rc = PCRE2_ERROR_BADOFFSET; in pcre2_substitute()
386 rc = match_data->rc; in pcre2_substitute()
389 else rc = pcre2_match(code, subject, length, start_offset, options|goptions, in pcre2_substitute()
401 if (rc < 0) in pcre2_substitute()
405 if (rc != PCRE2_ERROR_NOMATCH) goto EXIT; in pcre2_substitute()
449 rc = PCRE2_ERROR_BADSUBSPATTERN; in pcre2_substitute()
469 rc = PCRE2_ERROR_INTERNAL_DUPMATCH; in pcre2_substitute()
478 rc = PCRE2_ERROR_TOOMANYREPLACE; in pcre2_substitute()
486 if (rc == 0) rc = ovector_count; in pcre2_substitute()
490 scb.oveccount = rc; in pcre2_substitute()
595 rc = PCRE2_ERROR_NOSUBSTRING; in pcre2_substitute()
626 rc = PCRE2_ERROR_BADSUBSTITUTION; in pcre2_substitute()
631 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS); in pcre2_substitute()
632 if (rc != 0) goto PTREXIT; in pcre2_substitute()
638 rc = find_text_end(code, &ptr, repend, TRUE); in pcre2_substitute()
639 if (rc != 0) goto PTREXIT; in pcre2_substitute()
648 rc = PCRE2_ERROR_REPMISSINGBRACE; in pcre2_substitute()
690 rc = pcre2_substring_nametable_scan(code, name, &first, &last); in pcre2_substitute()
691 if (rc == PCRE2_ERROR_NOSUBSTRING && in pcre2_substitute()
698 if (rc < 0) goto PTREXIT; in pcre2_substitute()
699 for (entry = first; entry <= last; entry += rc) in pcre2_substitute()
724 rc = pcre2_substring_length_bynumber(match_data, group, &sublength); in pcre2_substitute()
725 if (rc < 0) in pcre2_substitute()
727 if (rc == PCRE2_ERROR_NOSUBSTRING && in pcre2_substitute()
730 rc = PCRE2_ERROR_UNSET; in pcre2_substitute()
732 if (rc != PCRE2_ERROR_UNSET) goto PTREXIT; /* Non-unset errors */ in pcre2_substitute()
748 if (rc == 0) goto LITERAL_SUBSTITUTE; in pcre2_substitute()
757 if (rc == 0) in pcre2_substitute()
853 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
857 switch(rc) in pcre2_substitute()
923 rc = mcontext->substitute_callout(&scb, mcontext->substitute_callout_data); in pcre2_substitute()
928 if (rc != 0) in pcre2_substitute()
939 if (rc < 0) suboptions &= (~PCRE2_SUBSTITUTE_GLOBAL); in pcre2_substitute()
975 rc = PCRE2_ERROR_NOMEMORY; in pcre2_substitute()
984 rc = subs; in pcre2_substitute()
990 else match_data->rc = rc; in pcre2_substitute()
991 return rc; in pcre2_substitute()
994 rc = PCRE2_ERROR_NOMEMORY; in pcre2_substitute()
998 rc = PCRE2_ERROR_BADREPLACEMENT; in pcre2_substitute()
1002 rc = PCRE2_ERROR_BADREPESCAPE; in pcre2_substitute()