Home | History | Annotate | Download | only in pcre

Lines Matching refs:errorcode

92 enum ErrorCode {
100 static const char* errorText(ErrorCode code)
153 static bool compileBracket(int, int*, unsigned char**, const UChar**, const UChar*, ErrorCode*, int, int*, int*, CompileData&);
170 errorCodePtr points to the errorcode variable
180 static int checkEscape(const UChar** ptrPtr, const UChar* patternEnd, ErrorCode* errorCodePtr, int bracount, bool isClass)
384 static const UChar* readRepeatCounts(const UChar* p, int* minp, int* maxp, ErrorCode* errorCodePtr)
570 const UChar** ptrPtr, const UChar* patternEnd, ErrorCode* errorCodePtr, int *firstbyteptr,
1732 const UChar** ptrPtr, const UChar* patternEnd, ErrorCode* errorCodePtr, int skipBytes,
2023 CompileData& cd, ErrorCode& errorcode)
2030 errorcode = ERR16;
2054 c = checkEscape(&ptr, patternEnd, &errorcode, cd.numCapturingBrackets, false);
2055 if (errorcode != 0)
2089 ptr = readRepeatCounts(ptr + 2, &minRepeats, &maxRepeats, &errorcode);
2090 if (errorcode)
2122 ptr = readRepeatCounts(ptr + 1, &minRepeats, &maxRepeats, &errorcode);
2123 if (errorcode != 0)
2187 c = checkEscape(&ptr, patternEnd, &errorcode, cd.numCapturingBrackets, true);
2188 if (errorcode != 0)
2222 d = checkEscape(&ptr, patternEnd, &errorcode, cd.numCapturingBrackets, true);
2223 if (errorcode != 0)
2238 errorcode = ERR8;
2310 errorcode = ERR6;
2330 ptr = readRepeatCounts(ptr + 2, &minRepeats, &maxRepeats, &errorcode);
2331 if (errorcode != 0)
2376 errorcode = ERR12;
2398 errorcode = ERR17;
2430 ptr = readRepeatCounts(ptr + 2, &minRepeats, &maxRepeats, &errorcode);
2431 if (errorcode)
2461 errorcode = ERR16;
2466 errorcode = ERR16;
2481 errorcode = ERR16;
2488 errorcode = ERR16;
2494 errorcode = ERR16;
2558 static inline JSRegExp* returnError(ErrorCode errorcode, const char** errorPtr)
2560 *errorPtr = errorText(errorcode);
2576 ErrorCode errorcode = ERR0;
2578 calculateCompiledPatternLength(pattern, patternLength, ignoreCase, cd, errorcode);
2580 int length = calculateCompiledPatternLength(pattern, patternLength, ignoreCase, cd, errorcode);
2581 if (errorcode)
2582 return returnError(errorcode, errorPtr);
2605 error, errorcode will be set non-zero, so we don't need to look at the result
2614 compileBranch(re->options, &bracketCount, &code, &ptr, patternEnd, &errorcode, &firstByte, &reqByte, cd);
2617 compileBracket(re->options, &bracketCount, &code, &ptr, patternEnd, &errorcode, 0, &firstByte, &reqByte, cd);
2624 if (errorcode == 0 && ptr < patternEnd)
2625 errorcode = ERR10;
2634 errorcode = ERR7;
2640 errorcode = ERR15;
2644 if (errorcode != ERR0) {
2646 return returnError(errorcode, errorPtr);