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
326 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->startchar)); in pcre2_substitute()
327 if (rc != 0) in pcre2_substitute()
345 rc = PCRE2_ERROR_BADOFFSET; in pcre2_substitute()
364 rc = match_data->rc; in pcre2_substitute()
367 else rc = pcre2_match(code, subject, length, start_offset, options|goptions, in pcre2_substitute()
379 if (rc < 0) in pcre2_substitute()
383 if (rc != PCRE2_ERROR_NOMATCH) goto EXIT; in pcre2_substitute()
427 rc = PCRE2_ERROR_BADSUBSPATTERN; in pcre2_substitute()
447 rc = PCRE2_ERROR_INTERNAL_DUPMATCH; in pcre2_substitute()
456 rc = PCRE2_ERROR_TOOMANYREPLACE; in pcre2_substitute()
464 if (rc == 0) rc = ovector_count; in pcre2_substitute()
468 scb.oveccount = rc; in pcre2_substitute()
573 rc = PCRE2_ERROR_NOSUBSTRING; in pcre2_substitute()
604 rc = PCRE2_ERROR_BADSUBSTITUTION; in pcre2_substitute()
609 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS); in pcre2_substitute()
610 if (rc != 0) goto PTREXIT; in pcre2_substitute()
616 rc = find_text_end(code, &ptr, repend, TRUE); in pcre2_substitute()
617 if (rc != 0) goto PTREXIT; in pcre2_substitute()
626 rc = PCRE2_ERROR_REPMISSINGBRACE; in pcre2_substitute()
668 rc = pcre2_substring_nametable_scan(code, name, &first, &last); in pcre2_substitute()
669 if (rc == PCRE2_ERROR_NOSUBSTRING && in pcre2_substitute()
676 if (rc < 0) goto PTREXIT; in pcre2_substitute()
677 for (entry = first; entry <= last; entry += rc) in pcre2_substitute()
702 rc = pcre2_substring_length_bynumber(match_data, group, &sublength); in pcre2_substitute()
703 if (rc < 0) in pcre2_substitute()
705 if (rc == PCRE2_ERROR_NOSUBSTRING && in pcre2_substitute()
708 rc = PCRE2_ERROR_UNSET; in pcre2_substitute()
710 if (rc != PCRE2_ERROR_UNSET) goto PTREXIT; /* Non-unset errors */ in pcre2_substitute()
726 if (rc == 0) goto LITERAL_SUBSTITUTE; in pcre2_substitute()
735 if (rc == 0) in pcre2_substitute()
831 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
835 switch(rc) in pcre2_substitute()
901 rc = mcontext->substitute_callout(&scb, mcontext->substitute_callout_data); in pcre2_substitute()
906 if (rc != 0) in pcre2_substitute()
917 if (rc < 0) suboptions &= (~PCRE2_SUBSTITUTE_GLOBAL); in pcre2_substitute()
953 rc = PCRE2_ERROR_NOMEMORY; in pcre2_substitute()
962 rc = subs; in pcre2_substitute()
968 else match_data->rc = rc; in pcre2_substitute()
969 return rc; in pcre2_substitute()
972 rc = PCRE2_ERROR_NOMEMORY; in pcre2_substitute()
976 rc = PCRE2_ERROR_BADREPLACEMENT; in pcre2_substitute()
980 rc = PCRE2_ERROR_BADREPESCAPE; in pcre2_substitute()