Ignore:
Timestamp:
Jan 8, 2015, 8:41:34 AM (4 years ago)
Author:
cameron
Message:

Command line parameter -i for case-insensitive matching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r4409 r4412  
    3030namespace re {
    3131
    32 RE * RE_Parser::parse(const std::string & regular_expression) {
     32RE * RE_Parser::parse(const std::string & regular_expression, ModeFlagSet initialFlags) {
    3333    RE_Parser parser(regular_expression);
     34    parser.fModeFlagSet = initialFlags;
    3435    RE * re = parser.parse_RE();
    3536    if (re == nullptr) {
     
    4041
    4142inline RE_Parser::RE_Parser(const std::string & regular_expression)
    42 : _cursor(regular_expression.begin())
    43 , _end(regular_expression.end())
    44 , fModeFlagSet(0)
    45 {
    46 
    47 }
    48 
     43    : _cursor(regular_expression.begin())
     44    , _end(regular_expression.end())
     45    , fModeFlagSet(0)
     46    {
     47       
     48    }
     49   
    4950RE * makeLookAheadAssertion(RE * r) {
    5051    return makeAssertion(r, Assertion::Kind::Lookahead, Assertion::Sense::Positive);
Note: See TracChangeset for help on using the changeset viewer.