646 |
// regexp wasn't valid on construction. |
// regexp wasn't valid on construction. |
647 |
int NumberOfCapturingGroups() const; |
int NumberOfCapturingGroups() const; |
648 |
|
|
649 |
// The default value for an argument, to indicate the end of the argument |
// The default value for an argument, to indicate the end of the argument |
650 |
// list. This must be used only in optional argument defaults. It should NOT |
// list. This must be used only in optional argument defaults. It should NOT |
651 |
// be passed explicitly. Some people have tried to use it like this: |
// be passed explicitly. Some people have tried to use it like this: |
652 |
// |
// |
654 |
// |
// |
655 |
// This is a mistake, and will not work. |
// This is a mistake, and will not work. |
656 |
static Arg no_arg; |
static Arg no_arg; |
657 |
|
|
658 |
private: |
private: |
659 |
|
|
660 |
void Init(const string& pattern, const RE_Options* options); |
void Init(const string& pattern, const RE_Options* options); |
674 |
int TryMatch(const StringPiece& text, |
int TryMatch(const StringPiece& text, |
675 |
int startpos, |
int startpos, |
676 |
Anchor anchor, |
Anchor anchor, |
677 |
|
bool empty_ok, |
678 |
int *vec, |
int *vec, |
679 |
int vecsize) const; |
int vecsize) const; |
680 |
|
|