Home | History | Annotate | Download | only in testing

Lines Matching refs:RE2

1 // Copyright 2006-2008 The RE2 Authors.  All Rights Reserved.
7 #include "re2/prog.h"
8 #include "re2/re2.h"
9 #include "re2/regexp.h"
10 #include "re2/testing/regexp_generator.h"
11 #include "re2/testing/string_generator.h"
13 namespace re2 {
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
132 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0));
137 EXPECT_FALSE(RE2("[\\s\\S]+", RE2::Latin1).
140 EXPECT_FALSE(RE2("[\\0-\xFF]+", RE2::Latin1).
143 EXPECT_FALSE(RE2(".+hello", RE2::Latin1).
146 EXPECT_FALSE(RE2(".*hello", RE2::Latin1).
149 EXPECT_FALSE(RE2(".*", RE2::Latin1).
152 EXPECT_FALSE(RE2("\\C*").
157 EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10))
199 RE2 re(regexp, RE2::Latin1);
216 if (!RE2::FullMatch(s, re))
240 } // namespace re2