/*
* Copyright 2009 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
class RegexBase;
class RegMatch {
public:
typedef enum {
fixed = 0x01,
grep = 0x02,
egrep = 0x04,
perl = 0x08,
inverse = 0x10,
icase = 0x20,
} regex_flags;
public:
RegMatch(RegMatch::regex_flags f = RegMatch::grep);
~RegMatch();
void alloc();
void compile(const char *pattern, Error* e);
int matches(const char * line, Error* e);
size_t begin() const;
size_t end() const;
size_t len() const { return end() - begin(); }
regex_flags getFlags() const { return flags; }
const StrBuf& getPattern() const;
private:
RegexBase *impl;
RegMatch::regex_flags flags;
};
# |
Change |
User |
Description |
Committed |
|
#1
|
19992 |
devkix |
"Forking branch 2016-1 of perforce_software-p4 to devkix-p4." |
|
|
//guest/perforce_software/p4/2016-1/support/regmatch.h |
#1
|
19472 |
Liz Lam |
Initial add of the 2016.1 p4/p4api source code. |
|
|