Searched refs:RE2 (Results 1 - 25 of 83) sorted by relevance

1234

/external/chromium_org/third_party/re2/re2/testing/
H A Dre2_test.cc2 // Copyright 2002-2009 The RE2 Authors. All Rights Reserved.
28 TEST(RE2, HexTests) {
35 CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \
37 CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \
53 TEST(RE2, OctalTests) {
59 CHECK(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \
61 CHECK(RE2
391 TestQuoteMeta(string unquoted, const RE2::Options& options = RE2::DefaultOptions) argument
401 NegativeTestQuoteMeta(string unquoted, string should_not_match, const RE2::Options& options = RE2::DefaultOptions) argument
[all...]
H A Dpossible_match_test.cc1 // Copyright 2006-2008 The RE2 Authors. All Rights Reserved.
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("
[all...]
H A Dset_test.cc1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
16 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED);
42 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED);
73 RE2::Set s(RE2::DefaultOptions, RE2
[all...]
/external/regex-re2/re2/testing/
H A Dre2_test.cc2 // Copyright 2002-2009 The RE2 Authors. All Rights Reserved.
21 TEST(RE2, HexTests) {
28 CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \
30 CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \
46 TEST(RE2, OctalTests) {
52 CHECK(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \
54 CHECK(RE2
384 TestQuoteMeta(string unquoted, const RE2::Options& options = RE2::DefaultOptions) argument
394 NegativeTestQuoteMeta(string unquoted, string should_not_match, const RE2::Options& options = RE2::DefaultOptions) argument
[all...]
H A Dpossible_match_test.cc1 // Copyright 2006-2008 The RE2 Authors. All Rights Reserved.
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("
[all...]
H A Dset_test.cc1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
16 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED);
42 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED);
73 RE2::Set s(RE2::DefaultOptions, RE2
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Dpost_box_matchers.cc41 new RE2("\xD8\xB5\xD9\x86\xD8\xAF\xD9\x88\xD9\x82 "
44 { "cs", new RE2("(?i)p\\.? ?p\\.? \\d") },
45 { "da", new RE2("(?i)Postboks") },
46 { "de", new RE2("(?i)Postfach") },
50 new RE2("(?i)T\\.? ?\xCE\x98\\.? \\d{2}") },
52 { "en", new RE2("Private Bag|Post(?:al)? Box") },
53 { "es", new RE2("(?i)(?:Apartado|Casillas) de correos?") },
54 { "fi", new RE2("(?i)Postilokero|P\\.?L\\.? \\d") },
55 { "hr", new RE2("(?i)p\\.? ?p\\.? \\d") },
59 new RE2("(
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/src/util/
H A Dre2ptr.h15 // Work-around for problems with the RE2 library. Must be the first #include
21 // RE2 will, in some environments, define class RE2 inside namespace re2 and
22 // then have a public "using re2::RE2;" statement to bring that definition into
23 // the root namespace, while in other environments it will define class RE2
27 // class RE2.
29 // The work-around in this file works by wrapping pointers to RE2 object in the
38 RE2ptr(RE2* init_ptr) : ptr(init_ptr) {}
40 RE2* const ptr;
/external/chromium_org/third_party/re2/re2/
H A Dset.h1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
16 // An RE2::Set represents a collection of regexps that can
18 class RE2::Set {
20 Set(const RE2::Options& options, RE2::Anchor anchor);
23 // Add adds regexp pattern to the set, interpreted using the RE2 options.
24 // (The RE2 constructor's default options parameter is RE2::UTF8.)
43 RE2::Options options_;
44 RE2
[all...]
H A Dfiltered_re2.h1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
5 // The class FilteredRE2 is used as a wrapper to multiple RE2 regexps.
37 // Uses RE2 constructor to create a RE2 object (re). Returns
40 RE2::ErrorCode Add(const StringPiece& pattern,
41 const RE2::Options& options,
75 // Get the individual RE2 objects. Useful for testing.
76 RE2* GetRE2(int regexpid) const { return re2_vec_[regexpid]; }
86 vector<RE2*> re2_vec_;
H A Dre2.cc1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved.
5 // Regular expression interface RE2.
27 DEFINE_bool(trace_re2, false, "trace RE2 execution");
35 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch = {};
36 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2
133 RE2::RE2(const char* pattern) { function in class:re2::RE2
137 RE2::RE2(const string& pattern) { function in class:re2::RE2
141 RE2::RE2(const StringPiece& pattern) { function in class:re2::RE2
145 RE2::RE2(const StringPiece& pattern, const Options& options) { function in class:re2::RE2
[all...]
H A Dre2.h1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved.
9 // RE2 supports Perl-style regular expressions (with extensions like
21 // supported by RE2, and a comparison with PCRE and PERL regexps.
40 // CHECK(RE2::FullMatch("hello", "h.*o"));
43 // CHECK(!RE2::FullMatch("hello", "e"));
49 // The RE2::Latin1 option causes them to be interpreted as Latin-1.
52 // CHECK(RE2::FullMatch(utf8_string, RE2(utf8_pattern)));
53 // CHECK(RE2::FullMatch(latin1_string, RE2(latin1_patter
215 class RE2 { class in namespace:re2
[all...]
H A Dfiltered_re2.cc1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
24 RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern,
25 const RE2::Options& options, int* id) {
26 RE2* re = new RE2(pattern, options);
27 RE2::ErrorCode code = re->error_code();
60 if (RE2::PartialMatch(text, *re2_vec_[i]))
74 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]]))
87 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]]))
H A Dset.cc1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
15 RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) {
22 RE2::Set::~Set() {
28 int RE2::Set::Add(const StringPiece& pattern, string* error) {
30 LOG(DFATAL) << "RE2::Set::Add after Compile";
69 bool RE2::Set::Compile() {
71 LOG(DFATAL) << "RE2::Set::Compile multiple times";
94 bool RE2
[all...]
/external/regex-re2/re2/
H A Dset.h1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
16 // An RE2::Set represents a collection of regexps that can
18 class RE2::Set {
20 Set(const RE2::Options& options, RE2::Anchor anchor);
23 // Add adds regexp pattern to the set, interpreted using the RE2 options.
24 // (The RE2 constructor's default options parameter is RE2::UTF8.)
43 RE2::Options options_;
44 RE2
[all...]
H A Dfiltered_re2.h1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
5 // The class FilteredRE2 is used as a wrapper to multiple RE2 regexps.
37 // Uses RE2 constructor to create a RE2 object (re). Returns
40 RE2::ErrorCode Add(const StringPiece& pattern,
41 const RE2::Options& options,
75 // Get the individual RE2 objects. Useful for testing.
76 RE2* GetRE2(int regexpid) const { return re2_vec_[regexpid]; }
86 vector<RE2*> re2_vec_;
H A Dre2.cc1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved.
5 // Regular expression interface RE2.
21 DEFINE_bool(trace_re2, false, "trace RE2 execution");
29 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch;
30 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2
115 RE2::RE2(const char* pattern) { function in class:re2::RE2
119 RE2::RE2(const string& pattern) { function in class:re2::RE2
123 RE2::RE2(const StringPiece& pattern) { function in class:re2::RE2
127 RE2::RE2(const StringPiece& pattern, const Options& options) { function in class:re2::RE2
[all...]
H A Dre2.h1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved.
9 // RE2 supports Perl-style regular expressions (with extensions like
21 // supported by RE2, and a comparison with PCRE and PERL regexps.
40 // CHECK(RE2::FullMatch("hello", "h.*o"));
43 // CHECK(!RE2::FullMatch("hello", "e"));
49 // The RE2::Latin1 option causes them to be interpreted as Latin-1.
52 // CHECK(RE2::FullMatch(utf8_string, RE2(utf8_pattern)));
53 // CHECK(RE2::FullMatch(latin1_string, RE2(latin1_patter
215 class RE2 { class in namespace:re2
[all...]
H A Dfiltered_re2.cc1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
24 RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern,
25 const RE2::Options& options, int* id) {
26 RE2* re = new RE2(pattern, options);
27 RE2::ErrorCode code = re->error_code();
60 if (RE2::PartialMatch(text, *re2_vec_[i]))
74 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]]))
87 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]]))
H A Dset.cc1 // Copyright 2010 The RE2 Authors. All Rights Reserved.
15 RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) {
22 RE2::Set::~Set() {
28 int RE2::Set::Add(const StringPiece& pattern, string* error) {
30 LOG(DFATAL) << "RE2::Set::Add after Compile";
69 bool RE2::Set::Compile() {
71 LOG(DFATAL) << "RE2::Set::Compile multiple times";
94 bool RE2
[all...]
/external/chromium_org/third_party/re2/
H A Dtestinstall.cc1 // Copyright 2008 The RE2 Authors. All Rights Reserved.
14 f.Add("a.*b.*c", RE2::DefaultOptions, &id);
18 if(RE2::FullMatch("axbyc", "a.*b.*c")) {
/external/regex-re2/
H A Dtestinstall.cc1 // Copyright 2008 The RE2 Authors. All Rights Reserved.
14 f.Add("a.*b.*c", RE2::DefaultOptions, &id);
18 if(RE2::FullMatch("axbyc", "a.*b.*c")) {
/external/chromium_org/extensions/browser/api/web_request/
H A Dform_data_parser.cc21 using re2::RE2;
35 // A wrapper struct for static RE2 objects to be held as LazyInstance.
39 const RE2 transfer_padding_pattern;
40 const RE2 crlf_pattern;
41 const RE2 closing_pattern;
42 const RE2 epilogue_pattern;
43 const RE2 crlf_free_pattern;
44 const RE2 preamble_pattern;
45 const RE2 header_pattern;
46 const RE2 content_disposition_patter
[all...]
/external/chromium_org/chrome/tools/profile_reset/
H A Djtl_parser.cc66 RE2 single_operation_regex;
67 RE2 single_argument_regex;
91 RE2 single_line_regex(kSingleLineWithMaybeCommentsRE);
92 RE2 remove_whitespace_regex(kRemoveWhitespaceRE);
97 if (!RE2::Consume(&verbose_text_piece, single_line_regex, &line)) {
102 RE2::GlobalReplace(
126 if (!RE2::Consume(&state_->remaining_compacted_source,
139 if (!RE2::Consume(&arguments_piece,
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
H A Dregexp_adapter_re2.cc62 const RE2& regexp,
111 return DispatchRE2Call(RE2::Consume, utf8_input, utf8_regexp_,
115 return DispatchRE2Call(RE2::FindAndConsume, utf8_input, utf8_regexp_,
125 return DispatchRE2Call(RE2::FullMatch, input_string, utf8_regexp_,
128 return DispatchRE2Call(RE2::PartialMatch, input_string, utf8_regexp_,
140 return RE2::GlobalReplace(string_to_process, utf8_regexp_,
143 return RE2::Replace(string_to_process, utf8_regexp_,
149 RE2 utf8_regexp_;

Completed in 763 milliseconds

1234