#include "../../../include/v8.h"
型定義 | |
typedef uint16_t | UChar |
typedef struct JSRegExp | JscreRegExp |
typedef void * | malloc_t (size_t size) |
typedef void | free_t (void *address) |
列挙型 | |
enum | JSRegExpIgnoreCaseOption { JSRegExpDoNotIgnoreCase, JSRegExpIgnoreCase } |
enum | JSRegExpMultilineOption { JSRegExpSingleLine, JSRegExpMultiline } |
関数 | |
JSRegExp * | jsRegExpCompile (const UChar *pattern, int patternLength, JSRegExpIgnoreCaseOption, JSRegExpMultilineOption, unsigned *numSubpatterns, const char **errorMessage, malloc_t *allocate_function, free_t *free_function) |
int | jsRegExpExecute (const JSRegExp *, const UChar *subject, int subjectLength, int startOffset, int *offsetsVector, int offsetsVectorLength) |
void | jsRegExpFree (JSRegExp *) |
変数 | |
const int | JSRegExpErrorNoMatch = -1 |
const int | JSRegExpErrorHitLimit = -2 |
const int | JSRegExpErrorNoMemory = -3 |
const int | JSRegExpErrorInternal = -4 |
typedef struct JSRegExp JscreRegExp |
JSRegExp* jsRegExpCompile | ( | const UChar * | pattern, | |
int | patternLength, | |||
JSRegExpIgnoreCaseOption | , | |||
JSRegExpMultilineOption | , | |||
unsigned * | numSubpatterns, | |||
const char ** | errorMessage, | |||
malloc_t * | allocate_function, | |||
free_t * | free_function | |||
) |
pcre_compile.cpp の 2540 行で定義されています。
参照先 ASSERT, CompileData::backrefMap, bracketFindFirstAssertedCharacter(), bracketIsAnchored(), bracketNeedsLineStart(), branchFindFirstAssertedCharacter(), branchIsAnchored(), branchNeedsLineStart(), calculateCompiledPatternLength(), v8::internal::code(), compileBracket(), compileBranch(), ERR0, ERR13, ERR16, flipCase(), IgnoreCaseOption, IsAnchoredOption, MatchAcrossMultipleLinesOption, MAX_PATTERN_SIZE, CompileData::needOuterBracket, NULL, REQ_IGNORE_CASE, REQ_VARY, returnError(), CompileData::top_backref, と UseMultiLineFirstByteOptimizationOption.
int jsRegExpExecute | ( | const JSRegExp * | , | |
const UChar * | subject, | |||
int | subjectLength, | |||
int | startOffset, | |||
int * | offsetsVector, | |||
int | offsetsVectorLength | |||
) |
pcre_exec.cpp の 1915 行で定義されています。
参照先 ASSERT, DPRINTF, MatchData::endMatchPtr, MatchData::endOffsetTop, MatchData::endSubject, JSRegExp::first_byte, flipCase(), MatchData::ignoreCase, IsAnchoredOption, JSRegExpErrorHitLimit, JSRegExpErrorNoMatch, JSRegExpErrorNoMemory, match(), MatchData::multiline, MatchData::offsetEnd, MatchData::offsetMax, MatchData::offsetOverflow, MatchData::offsetVector, JSRegExp::options, JSRegExp::req_byte, REQ_IGNORE_CASE, MatchData::startSubject, toLowerCase(), JSRegExp::top_backref, JSRegExp::top_bracket, tryFirstByteOptimization(), tryRequiredByteOptimization(), UseFirstByteOptimizationOption, と UseRequiredByteOptimizationOption.
void jsRegExpFree | ( | JSRegExp * | ) |
const int JSRegExpErrorHitLimit = -2 |
const int JSRegExpErrorInternal = -4 |
const int JSRegExpErrorNoMatch = -1 |
const int JSRegExpErrorNoMemory = -3 |
参照元 jsRegExpExecute().