Add ability to specify case insensitive matching.

This commit is contained in:
Rene Gollent
2013-06-05 22:02:43 -04:00
parent 47fedeb598
commit 7d4a7ce33e
2 changed files with 22 additions and 12 deletions
+4 -2
View File
@@ -22,7 +22,8 @@ public:
RegExp();
RegExp(const char* pattern,
PatternType patternType
= PATTERN_TYPE_REGULAR_EXPRESSION);
= PATTERN_TYPE_REGULAR_EXPRESSION,
bool caseSensitive = true);
RegExp(const RegExp& other);
~RegExp();
@@ -31,7 +32,8 @@ public:
bool SetPattern(const char* pattern,
PatternType patternType
= PATTERN_TYPE_REGULAR_EXPRESSION);
= PATTERN_TYPE_REGULAR_EXPRESSION,
bool caseSensitive = true);
MatchResult Match(const char* string) const;