RE2 41 chrome/browser/chromeos/login/hwid_checker.cc if (!RE2::FullMatch(hwid, "([\\s\\S]*) (\\d{4})", &body, &checksum)) RE2 47 chrome/browser/chromeos/login/hwid_checker.cc return RE2::PartialMatch(hwid, "^(SPRING [A-D])|(FALCO A)"); RE2 65 chrome/browser/chromeos/login/hwid_checker.cc if (!RE2::FullMatch(hwid, "[A-Z0-9]+ ((?:[A-Z2-7]{4}-)*[A-Z2-7]{1,4})", &bom)) RE2 96 chrome/browser/chromeos/login/hwid_checker.cc if (!RE2::FullMatch(hwid, regex, ¬_checksum, &checksum)) RE2 206 chrome/browser/download/download_query.cc RE2* pattern, RE2 209 chrome/browser/download/download_query.cc return RE2::PartialMatch(accessor.Run(item), *pattern); RE2 218 chrome/browser/download/download_query.cc scoped_ptr<RE2> pattern(new RE2(regex_str)); RE2 237 chrome/browser/drive/drive_api_util.cc if (RE2::FullMatch(resource_id, "^[a-z-]+(?::|%3A)([\\w-]+)$", RE2 148 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc RE2::Options options; RE2 150 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc scoped_ptr<RE2> from_pattern(new RE2(from, options)); RE2 681 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc scoped_ptr<RE2> from_pattern, RE2 768 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc if (!RE2::Replace(&new_url, *from_pattern_, to_pattern_) || RE2 44 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.h class RE2; RE2 262 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.h explicit WebRequestRedirectByRegExAction(scoped_ptr<re2::RE2> from_pattern, RE2 280 chrome/browser/extensions/api/declarative_webrequest/webrequest_action.h scoped_ptr<re2::RE2> from_pattern_; RE2 19 chrome/browser/extensions/api/web_request/form_data_parser.cc using re2::RE2; RE2 35 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 transfer_padding_pattern; RE2 36 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 crlf_pattern; RE2 37 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 closing_pattern; RE2 38 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 epilogue_pattern; RE2 39 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 crlf_free_pattern; RE2 40 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 preamble_pattern; RE2 41 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 header_pattern; RE2 42 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 content_disposition_pattern; RE2 43 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 name_pattern; RE2 44 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 value_pattern; RE2 45 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 unquote_pattern; RE2 46 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 url_encoded_pattern; RE2 92 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& pattern() const { RE2 108 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2::Arg arg_name_; RE2 109 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2::Arg arg_value_; RE2 110 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2::Arg* args_[args_size_]; RE2 218 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& pattern); RE2 238 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& transfer_padding_pattern() const { RE2 241 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& crlf_pattern() const { RE2 244 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& closing_pattern() const { RE2 247 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& epilogue_pattern() const { RE2 250 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& crlf_free_pattern() const { RE2 253 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& preamble_pattern() const { RE2 256 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& header_pattern() const { RE2 259 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& content_disposition_pattern() const { RE2 262 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& name_pattern() const { RE2 265 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& value_pattern() const { RE2 269 chrome/browser/extensions/api/web_request/form_data_parser.cc static const RE2& unquote_pattern() { RE2 273 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2 dash_boundary_pattern_; RE2 378 chrome/browser/extensions/api/web_request/form_data_parser.cc bool success = RE2::ConsumeN(&source_, pattern(), args_, args_size_); RE2 421 chrome/browser/extensions/api/web_request/form_data_parser.cc while (RE2::FindAndConsume(&seek_unquote, unquote_pattern())) { RE2 438 chrome/browser/extensions/api/web_request/form_data_parser.cc const RE2& pattern) { RE2 439 chrome/browser/extensions/api/web_request/form_data_parser.cc return pattern.Match(input, 0, input.size(), RE2::ANCHOR_START, NULL, 0); RE2 458 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, crlf_free_pattern()) || RE2 459 chrome/browser/extensions/api/web_request/form_data_parser.cc !RE2::Consume(&source_, crlf_pattern())) { RE2 476 chrome/browser/extensions/api/web_request/form_data_parser.cc CHECK(RE2::Consume(&source_, dash_boundary_pattern_)); RE2 478 chrome/browser/extensions/api/web_request/form_data_parser.cc CHECK(RE2::Consume(&source_, closing_pattern())); RE2 479 chrome/browser/extensions/api/web_request/form_data_parser.cc if (RE2::Consume(&source_, epilogue_pattern())) RE2 484 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, transfer_padding_pattern())) RE2 507 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, crlf_pattern())) { RE2 540 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, preamble_pattern())) { RE2 547 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, dash_boundary_pattern_) || RE2 548 chrome/browser/extensions/api/web_request/form_data_parser.cc !RE2::Consume(&source_, transfer_padding_pattern())) RE2 570 chrome/browser/extensions/api/web_request/form_data_parser.cc if (!RE2::Consume(&source_, header_pattern())) RE2 584 chrome/browser/extensions/api/web_request/form_data_parser.cc RE2::UNANCHORED, groups, 2)) { RE2 592 chrome/browser/extensions/api/web_request/form_data_parser.cc RE2::UNANCHORED, groups, 2)) { RE2 66 chrome/tools/profile_reset/jtl_parser.cc RE2 single_operation_regex; RE2 67 chrome/tools/profile_reset/jtl_parser.cc RE2 single_argument_regex; RE2 91 chrome/tools/profile_reset/jtl_parser.cc RE2 single_line_regex(kSingleLineWithMaybeCommentsRE); RE2 92 chrome/tools/profile_reset/jtl_parser.cc RE2 remove_whitespace_regex(kRemoveWhitespaceRE); RE2 97 chrome/tools/profile_reset/jtl_parser.cc if (!RE2::Consume(&verbose_text_piece, single_line_regex, &line)) { RE2 102 chrome/tools/profile_reset/jtl_parser.cc RE2::GlobalReplace( RE2 126 chrome/tools/profile_reset/jtl_parser.cc if (!RE2::Consume(&state_->remaining_compacted_source, RE2 139 chrome/tools/profile_reset/jtl_parser.cc if (!RE2::Consume(&arguments_piece, RE2 608 components/json_schema/json_schema_validator.cc ScopedVector<re2::RE2> pattern_properties_pattern; RE2 614 components/json_schema/json_schema_validator.cc re2::RE2* prop_pattern = new re2::RE2(it.key()); RE2 638 components/json_schema/json_schema_validator.cc if (re2::RE2::PartialMatch(it.key(), RE2 774 components/json_schema/json_schema_validator.cc re2::RE2 compiled_regex(pattern); RE2 781 components/json_schema/json_schema_validator.cc } else if (!re2::RE2::PartialMatch(value, compiled_regex)) { RE2 146 components/plugins/renderer/plugin_placeholder.cc if (RE2::PartialMatch(style_str, width_str) && RE2 147 components/plugins/renderer/plugin_placeholder.cc RE2::PartialMatch(style_str, height_str)) RE2 82 components/url_matcher/regex_set_matcher.cc RE2::ErrorCode error = filtered_re2_->Add( RE2 83 components/url_matcher/regex_set_matcher.cc it->second->pattern(), RE2::DefaultOptions, &re2_id); RE2 84 components/url_matcher/regex_set_matcher.cc if (error == RE2::NoError) { RE2 206 components/url_matcher/url_matcher_factory.cc re2::RE2 regex(str_value); RE2 221 content/child/webcrypto/shared_crypto_unittest.cc re2::RE2::GlobalReplace(&file_contents, re2::RE2("\\s*//.*"), ""); RE2 58 extensions/common/stack_frame.cc if (!re2::RE2::FullMatch(text, RE2 61 extensions/common/stack_frame.cc !re2::RE2::FullMatch(text, RE2 242 gpu/command_buffer/service/program_manager.cc while (RE2::Consume(&input, RE2 481 gpu/config/gpu_info_collector_win.cc if (RE2::FullMatch(gpu_info->gl_renderer, RE2 483 gpu/config/gpu_info_collector_win.cc RE2::PartialMatch(gpu_info->gl_renderer, RE2 486 gpu/config/gpu_info_collector_win.cc RE2::PartialMatch(gpu_info->gl_renderer, RE2 490 gpu/config/gpu_info_collector_win.cc RE2::PartialMatch(gpu_info->gl_renderer, RE2 510 gpu/config/gpu_info_collector_win.cc RE2::PartialMatch(egl_vendor, RE2 512 gpu/config/gpu_info_collector_win.cc RE2::Hex(&gpu_info->adapter_luid)); RE2 638 gpu/config/gpu_info_collector_win.cc bool parsed = RE2::PartialMatch( RE2 212 third_party/leveldatabase/env_chromium.cc if (RE2::PartialMatch(string, "ChromeMethodOnly: (\\d+)", &method)) { RE2 216 third_party/leveldatabase/env_chromium.cc if (RE2::PartialMatch( RE2 222 third_party/leveldatabase/env_chromium.cc if (RE2::PartialMatch( RE2 66 third_party/libaddressinput/chromium/cpp/src/address_validator.cc return RE2::FullMatch(value, "^(" + prefix_regex + ").*"); RE2 205 third_party/libaddressinput/chromium/cpp/src/address_validator.cc !RE2::FullMatch( RE2 136 third_party/re2/re2/compile.cc static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, RE2 212 third_party/re2/re2/compile.cc void Setup(Regexp::ParseFlags, int64, RE2::Anchor); RE2 235 third_party/re2/re2/compile.cc RE2::Anchor anchor_; // anchor mode for RE2::Set RE2 736 third_party/re2/re2/compile.cc if (anchor_ != RE2::ANCHOR_BOTH) RE2 953 third_party/re2/re2/compile.cc RE2::Anchor anchor) { RE2 995 third_party/re2/re2/compile.cc c.Setup(re->parse_flags(), max_mem, RE2::ANCHOR_BOTH /* unused */); RE2 1093 third_party/re2/re2/compile.cc Prog* Compiler::CompileSet(const RE2::Options& options, RE2::Anchor anchor, RE2 1106 third_party/re2/re2/compile.cc if (anchor == RE2::UNANCHORED) { RE2 1135 third_party/re2/re2/compile.cc Prog* Prog::CompileSet(const RE2::Options& options, RE2::Anchor anchor, RE2 24 third_party/re2/re2/filtered_re2.cc RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern, RE2 25 third_party/re2/re2/filtered_re2.cc const RE2::Options& options, int* id) { RE2 26 third_party/re2/re2/filtered_re2.cc RE2* re = new RE2(pattern, options); RE2 27 third_party/re2/re2/filtered_re2.cc RE2::ErrorCode code = re->error_code(); RE2 60 third_party/re2/re2/filtered_re2.cc if (RE2::PartialMatch(text, *re2_vec_[i])) RE2 74 third_party/re2/re2/filtered_re2.cc if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) RE2 87 third_party/re2/re2/filtered_re2.cc if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) RE2 40 third_party/re2/re2/filtered_re2.h RE2::ErrorCode Add(const StringPiece& pattern, RE2 41 third_party/re2/re2/filtered_re2.h const RE2::Options& options, RE2 76 third_party/re2/re2/filtered_re2.h RE2* GetRE2(int regexpid) const { return re2_vec_[regexpid]; } RE2 86 third_party/re2/re2/filtered_re2.h vector<RE2*> re2_vec_; RE2 703 third_party/re2/re2/prefilter.cc Prefilter* Prefilter::FromRE2(const RE2* re2) { RE2 16 third_party/re2/re2/prefilter.h class RE2; RE2 52 third_party/re2/re2/prefilter.h static Prefilter* FromRE2(const RE2* re2); RE2 334 third_party/re2/re2/prog.h static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, RE2 35 third_party/re2/re2/re2.cc const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch = {}; RE2 36 third_party/re2/re2/re2.cc const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::PartialMatchN> RE2::PartialMatch = {}; RE2 37 third_party/re2/re2/re2.cc const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::ConsumeN> RE2::Consume = {}; RE2 38 third_party/re2/re2/re2.cc const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAndConsume = {}; RE2 42 third_party/re2/re2/re2.cc RE2::Options::Options() RE2 57 third_party/re2/re2/re2.cc RE2::Options::Options(RE2::CannedOptions opt) RE2 58 third_party/re2/re2/re2.cc : encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8), RE2 59 third_party/re2/re2/re2.cc posix_syntax_(opt == RE2::POSIX_SYNTAX), RE2 60 third_party/re2/re2/re2.cc longest_match_(opt == RE2::POSIX_SYNTAX), RE2 61 third_party/re2/re2/re2.cc log_errors_(opt != RE2::Quiet), RE2 92 third_party/re2/re2/re2.cc static RE2::ErrorCode RegexpErrorToRE2(re2::RegexpStatusCode code) { RE2 95 third_party/re2/re2/re2.cc return RE2::NoError; RE2 97 third_party/re2/re2/re2.cc return RE2::ErrorInternal; RE2 99 third_party/re2/re2/re2.cc return RE2::ErrorBadEscape; RE2 101 third_party/re2/re2/re2.cc return RE2::ErrorBadCharClass; RE2 103 third_party/re2/re2/re2.cc return RE2::ErrorBadCharRange; RE2 105 third_party/re2/re2/re2.cc return RE2::ErrorMissingBracket; RE2 107 third_party/re2/re2/re2.cc return RE2::ErrorMissingParen; RE2 109 third_party/re2/re2/re2.cc return RE2::ErrorTrailingBackslash; RE2 111 third_party/re2/re2/re2.cc return RE2::ErrorRepeatArgument; RE2 113 third_party/re2/re2/re2.cc return RE2::ErrorRepeatSize; RE2 115 third_party/re2/re2/re2.cc return RE2::ErrorRepeatOp; RE2 117 third_party/re2/re2/re2.cc return RE2::ErrorBadPerlOp; RE2 119 third_party/re2/re2/re2.cc return RE2::ErrorBadUTF8; RE2 121 third_party/re2/re2/re2.cc return RE2::ErrorBadNamedCapture; RE2 123 third_party/re2/re2/re2.cc return RE2::ErrorInternal; RE2 133 third_party/re2/re2/re2.cc RE2::RE2(const char* pattern) { RE2 137 third_party/re2/re2/re2.cc RE2::RE2(const string& pattern) { RE2 141 third_party/re2/re2/re2.cc RE2::RE2(const StringPiece& pattern) { RE2 145 third_party/re2/re2/re2.cc RE2::RE2(const StringPiece& pattern, const Options& options) { RE2 149 third_party/re2/re2/re2.cc int RE2::Options::ParseFlags() const { RE2 156 third_party/re2/re2/re2.cc case RE2::Options::EncodingUTF8: RE2 158 third_party/re2/re2/re2.cc case RE2::Options::EncodingLatin1: RE2 190 third_party/re2/re2/re2.cc void RE2::Init(const StringPiece& pattern, const Options& options) { RE2 238 third_party/re2/re2/re2.cc error_code_ = RE2::ErrorPatternTooLarge; RE2 251 third_party/re2/re2/re2.cc re2::Prog* RE2::ReverseProg() const { RE2 259 third_party/re2/re2/re2.cc error_code_ = RE2::ErrorPatternTooLarge; RE2 266 third_party/re2/re2/re2.cc RE2::~RE2() { RE2 282 third_party/re2/re2/re2.cc int RE2::ProgramSize() const { RE2 289 third_party/re2/re2/re2.cc const map<string, int>& RE2::NamedCapturingGroups() const { RE2 302 third_party/re2/re2/re2.cc const map<int, string>& RE2::CapturingGroupNames() const { RE2 316 third_party/re2/re2/re2.cc bool RE2::FullMatchN(const StringPiece& text, const RE2& re, RE2 321 third_party/re2/re2/re2.cc bool RE2::PartialMatchN(const StringPiece& text, const RE2& re, RE2 326 third_party/re2/re2/re2.cc bool RE2::ConsumeN(StringPiece* input, const RE2& re, RE2 337 third_party/re2/re2/re2.cc bool RE2::FindAndConsumeN(StringPiece* input, const RE2& re, RE2 350 third_party/re2/re2/re2.cc int RE2::MaxSubmatch(const StringPiece& rewrite) { RE2 367 third_party/re2/re2/re2.cc bool RE2::Replace(string *str, RE2 368 third_party/re2/re2/re2.cc const RE2& re, RE2 387 third_party/re2/re2/re2.cc int RE2::GlobalReplace(string *str, RE2 388 third_party/re2/re2/re2.cc const RE2& re, RE2 427 third_party/re2/re2/re2.cc bool RE2::Extract(const StringPiece &text, RE2 428 third_party/re2/re2/re2.cc const RE2& re, RE2 443 third_party/re2/re2/re2.cc string RE2::QuoteMeta(const StringPiece& unquoted) { RE2 481 third_party/re2/re2/re2.cc bool RE2::PossibleMatchRange(string* min, string* max, int maxlen) const { RE2 543 third_party/re2/re2/re2.cc bool RE2::Match(const StringPiece& text, RE2 801 third_party/re2/re2/re2.cc bool RE2::DoMatch(const StringPiece& text, RE2 870 third_party/re2/re2/re2.cc bool RE2::Rewrite(string *out, const StringPiece &rewrite, RE2 906 third_party/re2/re2/re2.cc int RE2::NumberOfCapturingGroups() const { RE2 918 third_party/re2/re2/re2.cc bool RE2::CheckRewriteString(const StringPiece& rewrite, string* error) const { RE2 956 third_party/re2/re2/re2.cc bool RE2::Arg::parse_null(const char* str, int n, void* dest) { RE2 961 third_party/re2/re2/re2.cc bool RE2::Arg::parse_string(const char* str, int n, void* dest) { RE2 967 third_party/re2/re2/re2.cc bool RE2::Arg::parse_stringpiece(const char* str, int n, void* dest) { RE2 973 third_party/re2/re2/re2.cc bool RE2::Arg::parse_char(const char* str, int n, void* dest) { RE2 980 third_party/re2/re2/re2.cc bool RE2::Arg::parse_uchar(const char* str, int n, void* dest) { RE2 1040 third_party/re2/re2/re2.cc bool RE2::Arg::parse_long_radix(const char* str, RE2 1057 third_party/re2/re2/re2.cc bool RE2::Arg::parse_ulong_radix(const char* str, RE2 1080 third_party/re2/re2/re2.cc bool RE2::Arg::parse_short_radix(const char* str, RE2 1092 third_party/re2/re2/re2.cc bool RE2::Arg::parse_ushort_radix(const char* str, RE2 1104 third_party/re2/re2/re2.cc bool RE2::Arg::parse_int_radix(const char* str, RE2 1116 third_party/re2/re2/re2.cc bool RE2::Arg::parse_uint_radix(const char* str, RE2 1128 third_party/re2/re2/re2.cc bool RE2::Arg::parse_longlong_radix(const char* str, RE2 1145 third_party/re2/re2/re2.cc bool RE2::Arg::parse_ulonglong_radix(const char* str, RE2 1193 third_party/re2/re2/re2.cc bool RE2::Arg::parse_double(const char* str, int n, void* dest) { RE2 1197 third_party/re2/re2/re2.cc bool RE2::Arg::parse_float(const char* str, int n, void* dest) { RE2 1203 third_party/re2/re2/re2.cc bool RE2::Arg::parse_##name(const char* str, int n, void* dest) { \ RE2 1206 third_party/re2/re2/re2.cc bool RE2::Arg::parse_##name##_hex(const char* str, int n, void* dest) { \ RE2 1209 third_party/re2/re2/re2.cc bool RE2::Arg::parse_##name##_octal(const char* str, int n, void* dest) { \ RE2 1212 third_party/re2/re2/re2.cc bool RE2::Arg::parse_##name##_cradix(const char* str, int n, void* dest) { \ RE2 215 third_party/re2/re2/re2.h class RE2 { RE2 262 third_party/re2/re2/re2.h RE2(const char* pattern); RE2 263 third_party/re2/re2/re2.h RE2(const string& pattern); RE2 265 third_party/re2/re2/re2.h RE2(const StringPiece& pattern); RE2 266 third_party/re2/re2/re2.h RE2(const StringPiece& pattern, const Options& option); RE2 267 third_party/re2/re2/re2.h ~RE2(); RE2 328 third_party/re2/re2/re2.h static bool FullMatchN(const StringPiece& text, const RE2& re, RE2 331 third_party/re2/re2/re2.h bool, const StringPiece&, const RE2&, Arg, RE2::FullMatchN> FullMatch; RE2 335 third_party/re2/re2/re2.h static bool PartialMatchN(const StringPiece& text, const RE2& re, // 3..16 args RE2 338 third_party/re2/re2/re2.h bool, const StringPiece&, const RE2&, Arg, RE2::PartialMatchN> PartialMatch; RE2 343 third_party/re2/re2/re2.h static bool ConsumeN(StringPiece* input, const RE2& pattern, // 3..16 args RE2 346 third_party/re2/re2/re2.h bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume; RE2 352 third_party/re2/re2/re2.h static bool FindAndConsumeN(StringPiece* input, const RE2& pattern, RE2 355 third_party/re2/re2/re2.h bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume; RE2 371 third_party/re2/re2/re2.h const RE2& pattern, RE2 388 third_party/re2/re2/re2.h const RE2& pattern, RE2 398 third_party/re2/re2/re2.h const RE2& pattern, RE2 715 third_party/re2/re2/re2.h RE2(const RE2&); RE2 716 third_party/re2/re2/re2.h void operator=(const RE2&); RE2 734 third_party/re2/re2/re2.h class RE2::Arg { RE2 812 third_party/re2/re2/re2.h inline RE2::Arg::Arg() : arg_(NULL), parser_(parse_null) { } RE2 813 third_party/re2/re2/re2.h inline RE2::Arg::Arg(void* p) : arg_(p), parser_(parse_null) { } RE2 815 third_party/re2/re2/re2.h inline bool RE2::Arg::Parse(const char* str, int n) const { RE2 821 third_party/re2/re2/re2.h inline RE2::Arg RE2::Hex(type* ptr) { \ RE2 822 third_party/re2/re2/re2.h return RE2::Arg(ptr, RE2::Arg::parse_ ## name ## _hex); } \ RE2 823 third_party/re2/re2/re2.h inline RE2::Arg RE2::Octal(type* ptr) { \ RE2 824 third_party/re2/re2/re2.h return RE2::Arg(ptr, RE2::Arg::parse_ ## name ## _octal); } \ RE2 825 third_party/re2/re2/re2.h inline RE2::Arg RE2::CRadix(type* ptr) { \ RE2 826 third_party/re2/re2/re2.h return RE2::Arg(ptr, RE2::Arg::parse_ ## name ## _cradix); } RE2 841 third_party/re2/re2/re2.h using re2::RE2; RE2 15 third_party/re2/re2/set.cc RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) { RE2 22 third_party/re2/re2/set.cc RE2::Set::~Set() { RE2 28 third_party/re2/re2/set.cc int RE2::Set::Add(const StringPiece& pattern, string* error) { RE2 69 third_party/re2/re2/set.cc bool RE2::Set::Compile() { RE2 94 third_party/re2/re2/set.cc bool RE2::Set::Match(const StringPiece& text, vector<int>* v) const { RE2 18 third_party/re2/re2/set.h class RE2::Set { RE2 20 third_party/re2/re2/set.h Set(const RE2::Options& options, RE2::Anchor anchor); RE2 43 third_party/re2/re2/set.h RE2::Options options_; RE2 44 third_party/re2/re2/set.h RE2::Anchor anchor_; RE2 59 third_party/re2/re2/testing/exhaustive_tester.cc static void PrintResult(const RE2& re, const StringPiece& input, RE2::Anchor anchor, StringPiece *m, int n) { RE2 102 third_party/re2/re2/testing/exhaustive_tester.cc RE2 re(regexp); RE2 103 third_party/re2/re2/testing/exhaustive_tester.cc RE2::Options longest; RE2 105 third_party/re2/re2/testing/exhaustive_tester.cc RE2 relongest(regexp, longest); RE2 112 third_party/re2/re2/testing/exhaustive_tester.cc PrintResult(re, input, RE2::ANCHOR_BOTH, group, ngroup); RE2 114 third_party/re2/re2/testing/exhaustive_tester.cc PrintResult(re, input, RE2::UNANCHORED, group, ngroup); RE2 116 third_party/re2/re2/testing/exhaustive_tester.cc PrintResult(relongest, input, RE2::ANCHOR_BOTH, group, ngroup); RE2 118 third_party/re2/re2/testing/exhaustive_tester.cc PrintResult(relongest, input, RE2::UNANCHORED, group, ngroup); RE2 17 third_party/re2/re2/testing/filtered_re2_test.cc RE2::Options opts; RE2 119 third_party/re2/re2/testing/possible_match_test.cc CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); RE2 132 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0)); RE2 137 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2("[\\s\\S]+", RE2::Latin1). RE2 140 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2("[\\0-\xFF]+", RE2::Latin1). RE2 143 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2(".+hello", RE2::Latin1). RE2 146 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2(".*hello", RE2::Latin1). RE2 149 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2(".*", RE2::Latin1). RE2 152 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2("\\C*"). RE2 157 third_party/re2/re2/testing/possible_match_test.cc EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10)) RE2 199 third_party/re2/re2/testing/possible_match_test.cc RE2 re(regexp, RE2::Latin1); RE2 216 third_party/re2/re2/testing/possible_match_test.cc if (!RE2::FullMatch(s, re)) RE2 96 third_party/re2/re2/testing/re2_arg_test.cc RE2::Arg arg(&r); \ RE2 28 third_party/re2/re2/testing/re2_test.cc TEST(RE2, HexTests) { RE2 35 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \ RE2 37 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ RE2 53 third_party/re2/re2/testing/re2_test.cc TEST(RE2, OctalTests) { RE2 59 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \ RE2 61 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ RE2 77 third_party/re2/re2/testing/re2_test.cc TEST(RE2, DecimalTests) { RE2 83 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(#value, "(-?[0-9]+)[uUlL]*", &v)); \ RE2 85 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(#value, "(-?[0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ RE2 101 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Replace) { RE2 186 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::Replace(&one, t->regexp, t->rewrite)); RE2 189 third_party/re2/re2/testing/re2_test.cc CHECK_EQ(RE2::GlobalReplace(&all, t->regexp, t->rewrite), t->greplace_count) RE2 198 third_party/re2/re2/testing/re2_test.cc RE2 exp(regexp); RE2 219 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Extract) { RE2 224 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::Extract("boris@kremvax.ru", "(.*)@([^.]*)", "\\2!\\1", &s)); RE2 227 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::Extract("foo", ".*", "'\\0'", &s)); RE2 230 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::Extract("baz", "bar", "'\\0'", &s)); RE2 234 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Consume) { RE2 237 third_party/re2/re2/testing/re2_test.cc RE2 r("\\s*(\\w+)"); // matches a word, possibly proceeded by whitespace RE2 243 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::Consume(&input, r, &word)); RE2 245 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::Consume(&input, r, &word)); RE2 247 third_party/re2/re2/testing/re2_test.cc CHECK(! RE2::Consume(&input, r, &word)) << " input: " << input; RE2 250 third_party/re2/re2/testing/re2_test.cc TEST(RE2, ConsumeN) { RE2 254 third_party/re2/re2/testing/re2_test.cc RE2::Arg argv[2]; RE2 255 third_party/re2/re2/testing/re2_test.cc const RE2::Arg* const args[2] = { &argv[0], &argv[1] }; RE2 258 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)", args, 0)); // Skips "one". RE2 263 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)", args, 1)); RE2 269 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)\\s*(\\d+)", args, 2)); RE2 274 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FindAndConsume) { RE2 277 third_party/re2/re2/testing/re2_test.cc RE2 r("(\\w+)"); // matches a word RE2 283 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FindAndConsume(&input, r, &word)); RE2 285 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FindAndConsume(&input, r, &word)); RE2 287 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FindAndConsume(&input, r, &word)); RE2 289 third_party/re2/re2/testing/re2_test.cc CHECK(! RE2::FindAndConsume(&input, r, &word)); RE2 295 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FindAndConsume(&input, "aaa")); RE2 299 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FindAndConsumeN) { RE2 303 third_party/re2/re2/testing/re2_test.cc RE2::Arg argv[2]; RE2 304 third_party/re2/re2/testing/re2_test.cc const RE2::Arg* const args[2] = { &argv[0], &argv[1] }; RE2 307 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)", args, 0)); // Skips "one". RE2 312 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)", args, 1)); RE2 318 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)\\s*(\\d+)", args, 2)); RE2 323 third_party/re2/re2/testing/re2_test.cc TEST(RE2, MatchNumberPeculiarity) { RE2 326 third_party/re2/re2/testing/re2_test.cc RE2 r("(foo)|(bar)|(baz)"); RE2 331 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("foo", r, &word1, &word2, &word3)); RE2 335 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("bar", r, &word1, &word2, &word3)); RE2 339 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("baz", r, &word1, &word2, &word3)); RE2 343 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::PartialMatch("f", r, &word1, &word2, &word3)); RE2 346 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "(foo)|hello", &a)); RE2 350 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Match) { RE2 351 third_party/re2/re2/testing/re2_test.cc RE2 re("((\\w+):([0-9]+))"); // extracts host and port RE2 356 third_party/re2/re2/testing/re2_test.cc CHECK(!re.Match(s, 0, s.size(), RE2::UNANCHORED, RE2 361 third_party/re2/re2/testing/re2_test.cc CHECK(re.Match(s, 0, s.size(), RE2::UNANCHORED, RE2 370 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("a chrisr:9000 here", re, &all, &host, &port)); RE2 385 third_party/re2/re2/testing/re2_test.cc RE2 re("([a-zA-Z0-9]|-)+(\\.([a-zA-Z0-9]|-)+)*(\\.)?", RE2::Quiet); RE2 386 third_party/re2/re2/testing/re2_test.cc RE2::FullMatch(domain, re); RE2 392 third_party/re2/re2/testing/re2_test.cc const RE2::Options& options = RE2::DefaultOptions) { RE2 393 third_party/re2/re2/testing/re2_test.cc string quoted = RE2::QuoteMeta(unquoted); RE2 394 third_party/re2/re2/testing/re2_test.cc RE2 re(quoted, options); RE2 395 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE_M(RE2::FullMatch(unquoted, re), RE2 402 third_party/re2/re2/testing/re2_test.cc const RE2::Options& options = RE2::DefaultOptions) { RE2 403 third_party/re2/re2/testing/re2_test.cc string quoted = RE2::QuoteMeta(unquoted); RE2 404 third_party/re2/re2/testing/re2_test.cc RE2 re(quoted, options); RE2 405 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE_M(RE2::FullMatch(should_not_match, re), RE2 439 third_party/re2/re2/testing/re2_test.cc TestQuoteMeta("3\xb2 = 9", RE2::Latin1); RE2 470 third_party/re2/re2/testing/re2_test.cc RE2 re_simple("simple regexp"); RE2 471 third_party/re2/re2/testing/re2_test.cc RE2 re_medium("medium.*regexp"); RE2 472 third_party/re2/re2/testing/re2_test.cc RE2 re_complex("hard.{1,128}regexp"); RE2 490 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2(empties[i]).Match("abc", 0, 3, RE2::UNANCHORED, NULL, 0)); RE2 496 third_party/re2/re2/testing/re2_test.cc RE2 re("(hello world)"); RE2 503 third_party/re2/re2/testing/re2_test.cc RE2 re("(?P<A>expr(?P<B>expr)(?P<C>expr))((expr)(?P<D>expr))"); RE2 514 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchWithNoArgs) { RE2 515 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("h", "h")); RE2 516 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "hello")); RE2 517 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "h.*o")); RE2 518 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("othello", "h.*o")); // Must be anchored at front RE2 519 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("hello!", "h.*o")); // Must be anchored at end RE2 522 third_party/re2/re2/testing/re2_test.cc TEST(RE2, PartialMatch) { RE2 523 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("x", "x")); RE2 524 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("hello", "h.*o")); RE2 525 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("othello", "h.*o")); RE2 526 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("hello!", "h.*o")); RE2 527 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("x", "((((((((((((((((((((x))))))))))))))))))))")); RE2 530 third_party/re2/re2/testing/re2_test.cc TEST(RE2, PartialMatchN) { RE2 531 third_party/re2/re2/testing/re2_test.cc RE2::Arg argv[2]; RE2 532 third_party/re2/re2/testing/re2_test.cc const RE2::Arg* const args[2] = { &argv[0], &argv[1] }; RE2 535 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatchN("hello", "e.*o", args, 0)); RE2 536 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatchN("othello", "a.*o", args, 0)); RE2 541 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatchN("1001 nights", "(\\d+)", args, 1)); RE2 543 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatchN("three", "(\\d+)", args, 1)); RE2 548 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatchN("answer: 42:life", "(\\d+):(\\w+)", args, 2)); RE2 551 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatchN("hi1", "(\\w+)(1)", args, 2)); RE2 554 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchZeroArg) { RE2 556 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1001", "\\d+")); RE2 559 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchOneArg) { RE2 563 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1001", "(\\d+)", &i)); RE2 565 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-123", "(-?\\d+)", &i)); RE2 567 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("10", "()\\d+", &i)); RE2 568 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("1234567890123456789012345678901234567890", RE2 572 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchIntegerArg) { RE2 576 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234", "1(\\d*)4", &i)); RE2 578 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234", "(\\d)\\d+", &i)); RE2 580 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-1234", "(-\\d)\\d+", &i)); RE2 582 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("1234", "(\\d)", &i)); RE2 584 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch("-1234", "(-\\d)", &i)); RE2 588 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchStringArg) { RE2 591 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "h(.*)o", &s)); RE2 595 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchStringPieceArg) { RE2 599 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("ruby:1234", "(\\w+):(\\d+)", &sp, &i)); RE2 605 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchMultiArg) { RE2 609 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("ruby:1234", "(\\w+):(\\d+)", &s, &i)); RE2 614 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchN) { RE2 615 third_party/re2/re2/testing/re2_test.cc RE2::Arg argv[2]; RE2 616 third_party/re2/re2/testing/re2_test.cc const RE2::Arg* const args[2] = { &argv[0], &argv[1] }; RE2 619 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatchN("hello", "h.*o", args, 0)); RE2 620 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatchN("othello", "h.*o", args, 0)); RE2 625 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatchN("1001", "(\\d+)", args, 1)); RE2 627 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatchN("three", "(\\d+)", args, 1)); RE2 632 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatchN("42:life", "(\\d+):(\\w+)", args, 2)); RE2 635 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatchN("hi1", "(\\w+)(1)", args, 2)); RE2 638 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchIgnoredArg) { RE2 642 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("ruby:1234", "(\\w+)(:)(\\d+)", &s, (void*)NULL, &i)); RE2 647 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchTypedNullArg) { RE2 651 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "he(.*)lo", (char*)NULL)); RE2 652 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "h(.*)o", (string*)NULL)); RE2 653 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("hello", "h(.*)o", (StringPiece*)NULL)); RE2 654 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234", "(.*)", (int*)NULL)); RE2 655 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234567890123456", "(.*)", (long long*)NULL)); RE2 656 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("123.4567890123456", "(.*)", (double*)NULL)); RE2 657 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("123.4567890123456", "(.*)", (float*)NULL)); RE2 660 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("hello", "h(.*)lo", &s, (char*)NULL)); RE2 661 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("hello", "(.*)", (int*)NULL)); RE2 662 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("1234567890123456", "(.*)", (int*)NULL)); RE2 663 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("hello", "(.*)", (double*)NULL)); RE2 664 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("hello", "(.*)", (float*)NULL)); RE2 670 third_party/re2/re2/testing/re2_test.cc TEST(RE2, NULTerminated) { RE2 686 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(StringPiece(v + pagesize - 1, 1), "(.*)", &x)); RE2 691 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchTypeTests) { RE2 696 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("Hello", "(H)ello", &c)); RE2 701 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("Hello", "(H)ello", &c)); RE2 706 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); RE2 707 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); RE2 708 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("32767", "(-?\\d+)", &v)); CHECK_EQ(v, 32767); RE2 709 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-32768", "(-?\\d+)", &v)); CHECK_EQ(v, -32768); RE2 710 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("-32769", "(-?\\d+)", &v)); RE2 711 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("32768", "(-?\\d+)", &v)); RE2 715 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(\\d+)", &v)); CHECK_EQ(v, 100); RE2 716 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("32767", "(\\d+)", &v)); CHECK_EQ(v, 32767); RE2 717 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("65535", "(\\d+)", &v)); CHECK_EQ(v, 65535); RE2 718 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("65536", "(\\d+)", &v)); RE2 724 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); RE2 725 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); RE2 726 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("2147483647", "(-?\\d+)", &v)); CHECK_EQ(v, max); RE2 727 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-2147483648", "(-?\\d+)", &v)); CHECK_EQ(v, min); RE2 728 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("-2147483649", "(-?\\d+)", &v)); RE2 729 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("2147483648", "(-?\\d+)", &v)); RE2 731 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(zeros + "2147483647", "(-?\\d+)", &v)); RE2 733 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-" + zeros + "2147483648", "(-?\\d+)", &v)); RE2 736 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("-" + zeros + "2147483649", "(-?\\d+)", &v)); RE2 737 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0x7fffffff", "(.*)", RE2::CRadix(&v))); RE2 739 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("000x7fffffff", "(.*)", RE2::CRadix(&v))); RE2 744 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(\\d+)", &v)); CHECK_EQ(v, 100); RE2 745 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("4294967295", "(\\d+)", &v)); CHECK_EQ(v, max); RE2 746 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("4294967296", "(\\d+)", &v)); RE2 747 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("-1", "(\\d+)", &v)); RE2 749 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(zeros + "4294967295", "(\\d+)", &v)); CHECK_EQ(v, max); RE2 757 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); RE2 758 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); RE2 761 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); RE2 764 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, min); RE2 769 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); RE2 774 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); RE2 782 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); RE2 783 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v2)); CHECK_EQ(v2, -100); RE2 786 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); RE2 790 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); RE2 794 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FloatingPointFullMatchTypes) { RE2 798 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(.*)", &v)); CHECK_EQ(v, 100); RE2 799 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100.", "(.*)", &v)); CHECK_EQ(v, -100); RE2 800 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1e23", "(.*)", &v)); CHECK_EQ(v, float(1e23)); RE2 802 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(zeros + "1e23", "(.*)", &v)); RE2 817 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0.1", "(.*)", &v)); RE2 819 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("6700000000081920.1", "(.*)", &v)); RE2 825 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("100", "(.*)", &v)); CHECK_EQ(v, 100); RE2 826 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("-100.", "(.*)", &v)); CHECK_EQ(v, -100); RE2 827 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1e23", "(.*)", &v)); CHECK_EQ(v, 1e23); RE2 828 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(zeros + "1e23", "(.*)", &v)); RE2 831 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0.1", "(.*)", &v)); RE2 833 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1.00000005960464485", "(.*)", &v)); RE2 839 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchAnchored) { RE2 842 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("x1001", "(\\d+)", &i)); RE2 843 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("1001x", "(\\d+)", &i)); RE2 844 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("x1001", "x(\\d+)", &i)); CHECK_EQ(i, 1001); RE2 845 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1001x", "(\\d+)x", &i)); CHECK_EQ(i, 1001); RE2 848 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchBraces) { RE2 850 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0abcd", "[0-9a-f+.-]{5,}")); RE2 851 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("0abcde", "[0-9a-f+.-]{5,}")); RE2 852 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("0abc", "[0-9a-f+.-]{5,}")); RE2 855 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Complicated) { RE2 857 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("foo", "foo|bar|[A-Z]")); RE2 858 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("bar", "foo|bar|[A-Z]")); RE2 859 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("X", "foo|bar|[A-Z]")); RE2 860 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("XY", "foo|bar|[A-Z]")); RE2 863 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchEnd) { RE2 865 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("fo", "fo|foo")); RE2 866 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("foo", "fo|foo")); RE2 867 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("fo", "fo|foo$")); RE2 868 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("foo", "fo|foo$")); RE2 869 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("foo", "foo$")); RE2 870 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("foo$bar", "foo\\$")); RE2 871 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch("fox", "fo|bar")); RE2 878 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::PartialMatch("foo\n", "foo$")); RE2 882 third_party/re2/re2/testing/re2_test.cc TEST(RE2, FullMatchArgCount) { RE2 885 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("", "")); RE2 888 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1", RE2 894 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("12", RE2 901 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("123", RE2 909 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234", RE2 918 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("12345", RE2 929 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("123456", RE2 941 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234567", RE2 954 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch("1234567890123456", RE2 979 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Accessors) { RE2 983 third_party/re2/re2/testing/re2_test.cc const RE2 re(kPattern); RE2 989 third_party/re2/re2/testing/re2_test.cc RE2 re("foo"); RE2 992 third_party/re2/re2/testing/re2_test.cc CHECK(re.error_code() == RE2::NoError); RE2 996 third_party/re2/re2/testing/re2_test.cc TEST(RE2, UTF8) { RE2 1013 third_party/re2/re2/testing/re2_test.cc RE2 re_test1(".........", RE2::Latin1); RE2 1014 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(utf8_string, re_test1)); RE2 1015 third_party/re2/re2/testing/re2_test.cc RE2 re_test2("..."); RE2 1016 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(utf8_string, re_test2)); RE2 1021 third_party/re2/re2/testing/re2_test.cc RE2 re_test3("(.)", RE2::Latin1); RE2 1022 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch(utf8_string, re_test3, &s)); RE2 1024 third_party/re2/re2/testing/re2_test.cc RE2 re_test4("(.)"); RE2 1025 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch(utf8_string, re_test4, &s)); RE2 1029 third_party/re2/re2/testing/re2_test.cc RE2 re_test5(utf8_string, RE2::Latin1); RE2 1030 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(utf8_string, re_test5)); RE2 1031 third_party/re2/re2/testing/re2_test.cc RE2 re_test6(utf8_string); RE2 1032 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(utf8_string, re_test6)); RE2 1035 third_party/re2/re2/testing/re2_test.cc RE2 re_test7(utf8_pattern, RE2::Latin1); RE2 1036 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(utf8_string, re_test7)); RE2 1037 third_party/re2/re2/testing/re2_test.cc RE2 re_test8(utf8_pattern); RE2 1038 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(utf8_string, re_test8)); RE2 1041 third_party/re2/re2/testing/re2_test.cc TEST(RE2, UngreedyUTF8) { RE2 1048 third_party/re2/re2/testing/re2_test.cc RE2 match_sentence(pattern, RE2::Latin1); RE2 1049 third_party/re2/re2/testing/re2_test.cc RE2 match_sentence_re(pattern); RE2 1051 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(target, match_sentence)); RE2 1052 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(target, match_sentence_re)); RE2 1057 third_party/re2/re2/testing/re2_test.cc RE2 match_sentence(pattern, RE2::Latin1); RE2 1059 third_party/re2/re2/testing/re2_test.cc RE2 match_sentence_re(pattern); RE2 1061 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(target, match_sentence)); RE2 1062 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(target, match_sentence_re)); RE2 1066 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Rejects) { RE2 1067 third_party/re2/re2/testing/re2_test.cc { RE2 re("a\\1", RE2::Quiet); CHECK(!re.ok()); } RE2 1069 third_party/re2/re2/testing/re2_test.cc RE2 re("a[x", RE2::Quiet); RE2 1073 third_party/re2/re2/testing/re2_test.cc RE2 re("a[z-a]", RE2::Quiet); RE2 1077 third_party/re2/re2/testing/re2_test.cc RE2 re("a[[:foobar:]]", RE2::Quiet); RE2 1081 third_party/re2/re2/testing/re2_test.cc RE2 re("a(b", RE2::Quiet); RE2 1085 third_party/re2/re2/testing/re2_test.cc RE2 re("a\\", RE2::Quiet); RE2 1090 third_party/re2/re2/testing/re2_test.cc TEST(RE2, NoCrash) { RE2 1093 third_party/re2/re2/testing/re2_test.cc RE2 re("a\\", RE2::Quiet); RE2 1095 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::PartialMatch("a\\b", re)); RE2 1100 third_party/re2/re2/testing/re2_test.cc RE2 re("(((.{100}){100}){100}){100}", RE2::Quiet); RE2 1102 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::PartialMatch("aaa", re)); RE2 1107 third_party/re2/re2/testing/re2_test.cc RE2 re(".{512}x", RE2::Quiet); RE2 1112 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch(s, re)); RE2 1116 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Recursion) { RE2 1127 third_party/re2/re2/testing/re2_test.cc TEST(RE2, BigCountedRepetition) { RE2 1129 third_party/re2/re2/testing/re2_test.cc RE2::Options opt; RE2 1132 third_party/re2/re2/testing/re2_test.cc RE2 re(".{512}x", opt); RE2 1137 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::PartialMatch(s, re)); RE2 1140 third_party/re2/re2/testing/re2_test.cc TEST(RE2, DeepRecursion) { RE2 1149 third_party/re2/re2/testing/re2_test.cc RE2 re("((?:\\s|xx.*\n|x[*](?:\n|.)*?[*]x)*)"); RE2 1150 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(comment, re)); RE2 1160 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch(sp, "(?i)([wand]{5})", &result)); RE2 1161 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FindAndConsume(&sp, "(?i)([wand]{5})", &result)); RE2 1166 third_party/re2/re2/testing/re2_test.cc TEST(RE2, ImplicitConversions) { RE2 1170 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch("e", re_string)); RE2 1171 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch("e", re_stringpiece)); RE2 1172 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch("e", re_cstring)); RE2 1173 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch("e", ".")); RE2 1177 third_party/re2/re2/testing/re2_test.cc TEST(RE2, CL8622304) { RE2 1180 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("D", "([^\\\\])")); // ok RE2 1181 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("D", "([^\\\\])", &dir)); // fails RE2 1185 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch("bar:1,0x2F,030,4,5;baz:true;fooby:false,true", RE2 1220 third_party/re2/re2/testing/re2_test.cc TEST(RE2, ErrorArgs) { RE2 1222 third_party/re2/re2/testing/re2_test.cc RE2 re(error_tests[i].regexp, RE2::Quiet); RE2 1240 third_party/re2/re2/testing/re2_test.cc TEST(RE2, NeverNewline) { RE2 1241 third_party/re2/re2/testing/re2_test.cc RE2::Options opt; RE2 1245 third_party/re2/re2/testing/re2_test.cc RE2 re(t.regexp, opt); RE2 1257 third_party/re2/re2/testing/re2_test.cc TEST(RE2, NeverCapture) { RE2 1258 third_party/re2/re2/testing/re2_test.cc RE2::Options opt; RE2 1260 third_party/re2/re2/testing/re2_test.cc RE2 re("(r)(e)", opt); RE2 1268 third_party/re2/re2/testing/re2_test.cc TEST(RE2, BitstateCaptureBug) { RE2 1269 third_party/re2/re2/testing/re2_test.cc RE2::Options opt; RE2 1271 third_party/re2/re2/testing/re2_test.cc RE2 re("(_________$)", opt); RE2 1273 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(re.Match(s, 0, s.size(), RE2::UNANCHORED, NULL, 0)); RE2 1277 third_party/re2/re2/testing/re2_test.cc TEST(RE2, UnicodeClasses) { RE2 1281 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("A", "\\p{L}")); RE2 1282 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("A", "\\p{Lu}")); RE2 1283 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("A", "\\p{Ll}")); RE2 1284 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("A", "\\P{L}")); RE2 1285 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("A", "\\P{Lu}")); RE2 1286 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("A", "\\P{Ll}")); RE2 1288 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("譚", "\\p{L}")); RE2 1289 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("譚", "\\p{Lu}")); RE2 1290 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("譚", "\\p{Ll}")); RE2 1291 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("譚", "\\P{L}")); RE2 1292 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("譚", "\\P{Lu}")); RE2 1293 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("譚", "\\P{Ll}")); RE2 1295 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("永", "\\p{L}")); RE2 1296 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("永", "\\p{Lu}")); RE2 1297 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("永", "\\p{Ll}")); RE2 1298 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("永", "\\P{L}")); RE2 1299 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("永", "\\P{Lu}")); RE2 1300 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("永", "\\P{Ll}")); RE2 1302 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("鋒", "\\p{L}")); RE2 1303 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("鋒", "\\p{Lu}")); RE2 1304 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("鋒", "\\p{Ll}")); RE2 1305 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::FullMatch("鋒", "\\P{L}")); RE2 1306 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("鋒", "\\P{Lu}")); RE2 1307 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch("鋒", "\\P{Ll}")); RE2 1309 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?(.).*?(.)", &a, &b, &c)); RE2 1314 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?([\\p{L}]).*?(.)", &a, &b, &c)); RE2 1319 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatch(str, "\\P{L}")); RE2 1321 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?([\\p{Lu}]).*?(.)", &a, &b, &c)); RE2 1326 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatch(str, "[^\\p{Lu}\\p{Lo}]")); RE2 1328 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::PartialMatch(str, ".*(.).*?([\\p{Lu}\\p{Lo}]).*?(.)", &a, &b, &c)); RE2 1335 third_party/re2/re2/testing/re2_test.cc TEST(RE2, NullVsEmptyString) { RE2 1336 third_party/re2/re2/testing/re2_test.cc RE2 re2(".*"); RE2 1338 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch(v1, re2)); RE2 1341 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::FullMatch(v2, re2)); RE2 1345 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Bug1816809) { RE2 1346 third_party/re2/re2/testing/re2_test.cc RE2 re("(((((llx((-3)|(4)))(;(llx((-3)|(4))))*))))"); RE2 1349 third_party/re2/re2/testing/re2_test.cc EXPECT_TRUE(RE2::Consume(&piece, re, &x)); RE2 1353 third_party/re2/re2/testing/re2_test.cc TEST(RE2, Bug3061120) { RE2 1354 third_party/re2/re2/testing/re2_test.cc RE2 re("(?i)\\W"); RE2 1355 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatch("x", re)); // always worked RE2 1356 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatch("k", re)); // broke because of kelvin RE2 1357 third_party/re2/re2/testing/re2_test.cc EXPECT_FALSE(RE2::PartialMatch("s", re)); // broke because of latin long s RE2 1360 third_party/re2/re2/testing/re2_test.cc TEST(RE2, CapturingGroupNames) { RE2 1363 third_party/re2/re2/testing/re2_test.cc RE2 re("((abc)(?P<G2>)|((e+)(?P<G2>.*)(?P<G1>u+)))"); RE2 1373 third_party/re2/re2/testing/re2_test.cc TEST(RE2, RegexpToStringLossOfAnchor) { RE2 1374 third_party/re2/re2/testing/re2_test.cc EXPECT_EQ(RE2("^[a-c]at", RE2::POSIX).Regexp()->ToString(), "^[a-c]at"); RE2 1375 third_party/re2/re2/testing/re2_test.cc EXPECT_EQ(RE2("^[a-c]at").Regexp()->ToString(), "(?-m:^)[a-c]at"); RE2 1376 third_party/re2/re2/testing/re2_test.cc EXPECT_EQ(RE2("ca[t-z]$", RE2::POSIX).Regexp()->ToString(), "ca[t-z]$"); RE2 1377 third_party/re2/re2/testing/re2_test.cc EXPECT_EQ(RE2("ca[t-z]$").Regexp()->ToString(), "ca[t-z](?-m:$)"); RE2 88 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 90 third_party/re2/re2/testing/regexp_benchmark.cc RE2::FullMatch(text, re); RE2 96 third_party/re2/re2/testing/regexp_benchmark.cc static_cast<int>(sizeof(RE2)), RE2 272 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("((Hello World))"); RE2 276 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FindAndConsume(&t, re, &u)); RE2 651 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 876 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 879 third_party/re2/re2/testing/regexp_benchmark.cc CHECK_EQ(RE2::FullMatch(text, re), expect_match); RE2 881 third_party/re2/re2/testing/regexp_benchmark.cc CHECK_EQ(RE2::PartialMatch(text, re), expect_match); RE2 961 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 965 third_party/re2/re2/testing/regexp_benchmark.cc CHECK_EQ(RE2::FullMatch(text, re), expect_match); RE2 967 third_party/re2/re2/testing/regexp_benchmark.cc CHECK_EQ(RE2::PartialMatch(text, re), expect_match); RE2 1039 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1042 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3)); RE2 1106 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1110 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3)); RE2 1169 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1172 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FullMatch(text, re, &sp1)); RE2 1236 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1240 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FullMatch(text, re, &sp1)); RE2 1256 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1260 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::PartialMatch(text, re, &sp1, &sp2)); RE2 1276 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp); RE2 1280 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::PartialMatch(text, re, &sp1)); RE2 1292 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(""); RE2 1294 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch("", re); RE2 1310 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("abcdefg"); RE2 1312 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch("abcdefg", re); RE2 1334 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); RE2 1336 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch(http_text, re, &a); RE2 1358 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); RE2 1360 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch(http_text, re, &a); RE2 1379 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("(?-s)^(.+)"); RE2 1381 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch(http_text, re, &a); RE2 1400 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re("(?-s)^([ -~]+)"); RE2 1402 third_party/re2/re2/testing/regexp_benchmark.cc RE2::PartialMatch(http_text, re, &a); RE2 1430 third_party/re2/re2/testing/regexp_benchmark.cc RE2 re(regexp, RE2::Latin1); RE2 1433 third_party/re2/re2/testing/regexp_benchmark.cc CHECK(RE2::FullMatch(s, re)); RE2 16 third_party/re2/re2/testing/set_test.cc RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); RE2 42 third_party/re2/re2/testing/set_test.cc RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); RE2 73 third_party/re2/re2/testing/set_test.cc RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); RE2 85 third_party/re2/re2/testing/set_test.cc RE2::Set s(RE2::DefaultOptions, RE2::ANCHOR_BOTH); RE2 228 third_party/re2/re2/testing/tester.cc RE2::Options options; RE2 230 third_party/re2/re2/testing/tester.cc options.set_encoding(RE2::Options::EncodingLatin1); RE2 233 third_party/re2/re2/testing/tester.cc re2_ = new RE2(re, options); RE2 385 third_party/re2/re2/testing/tester.cc RE2::Anchor re_anchor; RE2 387 third_party/re2/re2/testing/tester.cc re_anchor = RE2::ANCHOR_START; RE2 389 third_party/re2/re2/testing/tester.cc re_anchor = RE2::UNANCHORED; RE2 391 third_party/re2/re2/testing/tester.cc re_anchor = RE2::ANCHOR_BOTH; RE2 85 third_party/re2/re2/testing/tester.h RE2* re2_; // RE2 implementation RE2 14 third_party/re2/testinstall.cc f.Add("a.*b.*c", RE2::DefaultOptions, &id); RE2 18 third_party/re2/testinstall.cc if(RE2::FullMatch("axbyc", "a.*b.*c")) { RE2 139 third_party/re2/util/benchmark.cc if(RE2::PartialMatch(name, argv[i])) RE2 69 tools/ipc_fuzzer/mutate/message_util.cc bool MessageMatches(const IPC::Message* msg, const RE2& pattern) { RE2 70 tools/ipc_fuzzer/mutate/message_util.cc return RE2::FullMatch(MessageName(msg), pattern); RE2 100 tools/ipc_fuzzer/mutate/message_util.cc RE2 filter_pattern(cmd->GetSwitchValueASCII(kRegexpSwitch));