/* * 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 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-1/support/regmatch.h | |||||
#1 | 15902 | Matt Attaway | A second renaming that I will not obliterate as a badge of shame | ||
//guest/perforce_software/p4/2014_1/support/regmatch.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.1/support/regmatch.h | |||||
#1 | 12188 | Matt Attaway | Move 'main' p4 into a release specific directory in prep for new releases | ||
//guest/perforce_software/p4/support/regmatch.h | |||||
#1 | 9129 | Matt Attaway | Initial commit of the 2014.1 p4/p4api source code |