/* * 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-2/support/regmatch.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2014_2/support/regmatch.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.2/support/regmatch.h | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code |