Ignore:
Timestamp:
Jun 14, 2008, 11:23:50 PM (17 years ago)
Author:
Darin Adler
Message:

2008-06-14 Darin Adler <Darin Adler>

Rubber stamped by Sam.

  • rename a bunch of local symbols within the regular expression code to follow our usual coding style, and do a few other name tweaks
  • pcre/pcre_compile.cpp: (CompileData::CompileData): (checkEscape): (readRepeatCounts): (compileBranch): (compileBracket): (calculateCompiledPatternLength): (returnError): (jsRegExpCompile):
  • pcre/pcre_exec.cpp: (MatchStack::MatchStack): (MatchStack::canUseStackBufferForNextFrame): (MatchStack::popCurrentFrame): (match): (tryFirstByteOptimization): (tryRequiredByteOptimization): (jsRegExpExecute):
  • pcre/pcre_internal.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_internal.h

    r31454 r34560  
    172172// FIXME: These are really more of a "compiled regexp state" than "regexp options"
    173173enum RegExpOptions {
    174     UseFirstByteOptimizationOption = 0x40000000,  /* first_byte is set */
    175     UseRequiredByteOptimizationOption = 0x20000000,  /* req_byte is set */
     174    UseFirstByteOptimizationOption = 0x40000000,  /* firstByte is set */
     175    UseRequiredByteOptimizationOption = 0x20000000,  /* reqByte is set */
    176176    UseMultiLineFirstByteOptimizationOption = 0x10000000,  /* start after \n for multiline */
    177177    IsAnchoredOption = 0x02000000,  /* can't use partial with this regex */
     
    180180};
    181181
    182 /* Flags added to firstbyte or reqbyte; a "non-literal" item is either a
     182/* Flags added to firstByte or reqByte; a "non-literal" item is either a
    183183variable-length repeat, or a anything other than literal characters. */
    184184
    185185#define REQ_IGNORE_CASE 0x0100    /* indicates should ignore case */
    186 #define REQ_VARY     0x0200    /* reqbyte followed non-literal item */
     186#define REQ_VARY     0x0200    /* reqByte followed non-literal item */
    187187
    188188/* Miscellaneous definitions */
     
    327327    unsigned options;
    328328
    329     unsigned short top_bracket;
    330     unsigned short top_backref;
     329    unsigned short topBracket;
     330    unsigned short topBackref;
    331331   
    332     unsigned short first_byte;
    333     unsigned short req_byte;
     332    unsigned short firstByte;
     333    unsigned short reqByte;
    334334};
    335335
Note: See TracChangeset for help on using the changeset viewer.