Home | History | Annotate | Download | only in testing

Lines Matching refs:Regexp

10 #include "re2/regexp.h"
15 TEST(Regexp, BigRef) {
16 Regexp* re;
17 re = Regexp::Parse("x", Regexp::NoParseFlags, NULL);
28 TEST(Regexp, BigConcat) {
29 Regexp* x;
30 x = Regexp::Parse("x", Regexp::NoParseFlags, NULL);
31 vector<Regexp*> v(90000, x); // ToString bails out at 100000
35 Regexp* re = Regexp::Concat(&v[0], v.size(), Regexp::NoParseFlags);
42 TEST(Regexp, NamedCaptures) {
43 Regexp* x;
45 x = Regexp::Parse(
46 "(?P<g1>a+)|(e)(?P<g2>w*)+(?P<g1>b+)", Regexp::PerlX, &status);
52 // the regexp: 'g1' and 'g2'.
61 TEST(Regexp, CaptureNames) {
62 Regexp* x;
64 x = Regexp::Parse(
65 "(?P<g1>a+)|(e)(?P<g2>w*)+(?P<g1>b+)", Regexp::PerlX, &status);