RE 76 pcre/pcre_scanner.cc skip_ = new RE(re); RE 90 pcre/pcre_scanner.cc skip_ = new RE(re); RE 127 pcre/pcre_scanner.cc bool Scanner::LookingAt(const RE& re) const { RE 129 pcre/pcre_scanner.cc return re.DoMatch(input_, RE::ANCHOR_START, &consumed, 0, 0); RE 133 pcre/pcre_scanner.cc bool Scanner::Consume(const RE& re, RE 74 pcre/pcre_scanner.h bool LookingAt(const RE& re) const; RE 82 pcre/pcre_scanner.h bool Consume(const RE& re, RE 152 pcre/pcre_scanner.h RE* skip_; // If non-NULL, RE for skipping input RE 66 pcre/pcrecpp.cc void RE::Init(const string& pat, const RE_Options* options) { RE 83 pcre/pcrecpp.cc void RE::Cleanup() { RE 90 pcre/pcrecpp.cc RE::~RE() { RE 95 pcre/pcrecpp.cc pcre* RE::Compile(Anchor anchor) { RE 135 pcre/pcrecpp.cc bool RE::FullMatch(const StringPiece& text, RE 177 pcre/pcrecpp.cc bool RE::PartialMatch(const StringPiece& text, RE 219 pcre/pcrecpp.cc bool RE::Consume(StringPiece* input, RE 267 pcre/pcrecpp.cc bool RE::FindAndConsume(StringPiece* input, RE 315 pcre/pcrecpp.cc bool RE::Replace(const StringPiece& rewrite, RE 356 pcre/pcrecpp.cc int RE::GlobalReplace(const StringPiece& rewrite, RE 413 pcre/pcrecpp.cc bool RE::Extract(const StringPiece& rewrite, RE 424 pcre/pcrecpp.cc /*static*/ string RE::QuoteMeta(const StringPiece& unquoted) { RE 454 pcre/pcrecpp.cc int RE::TryMatch(const StringPiece& text, RE 501 pcre/pcrecpp.cc bool RE::DoMatchImpl(const StringPiece& text, RE 541 pcre/pcrecpp.cc bool RE::DoMatch(const StringPiece& text, RE 556 pcre/pcrecpp.cc bool RE::Rewrite(string *out, const StringPiece &rewrite, RE 589 pcre/pcrecpp.cc int RE::NumberOfCapturingGroups() const { RE 70 pcre/pcrecpp_unittest.cc RE pattern("ruby:\\d+"); RE 79 pcre/pcrecpp_unittest.cc RE pattern("ruby:(\\d+)"); RE 93 pcre/pcrecpp_unittest.cc RE line_matcher(".*\n"); RE 115 pcre/pcrecpp_unittest.cc RE newre(buf); RE 132 pcre/pcrecpp_unittest.cc CHECK(RE("([0-9a-fA-F]+)[uUlL]*").FullMatch(#value, Hex(&v))); \ RE 134 pcre/pcrecpp_unittest.cc CHECK(RE("([0-9a-fA-FxX]+)[uUlL]*").FullMatch("0x" #value, CRadix(&v))); \ RE 158 pcre/pcrecpp_unittest.cc CHECK(RE("([0-7]+)[uUlL]*").FullMatch(#value, Octal(&v))); \ RE 160 pcre/pcrecpp_unittest.cc CHECK(RE("([0-9a-fA-FxX]+)[uUlL]*").FullMatch("0" #value, CRadix(&v))); \ RE 184 pcre/pcrecpp_unittest.cc CHECK(RE("(-?[0-9]+)[uUlL]*").FullMatch(#value, &v)); \ RE 186 pcre/pcrecpp_unittest.cc CHECK(RE("(-?[0-9a-fA-FxX]+)[uUlL]*").FullMatch(#value, CRadix(&v))); \ RE 306 pcre/pcrecpp_unittest.cc RE re(t->regexp, RE_Options(PCRE_NEWLINE_CRLF).set_utf8(support_utf8)); RE 318 pcre/pcrecpp_unittest.cc RE re("b*", RE_Options(PCRE_NEWLINE_CR).set_utf8(support_utf8)); RE 325 pcre/pcrecpp_unittest.cc RE re("b*", RE_Options(PCRE_NEWLINE_LF).set_utf8(support_utf8)); RE 340 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)@([^.]*)").Extract("\\2!\\1", "boris@kremvax.ru", &s)); RE 344 pcre/pcrecpp_unittest.cc CHECK(RE(".*").Extract("'\\0'", "foo", &s)); RE 346 pcre/pcrecpp_unittest.cc CHECK(!RE("bar").Extract("'\\0'", "baz", &s)); RE 358 pcre/pcrecpp_unittest.cc RE r("\\s*(\\w+)"); // matches a word, possibly proceeded by whitespace RE 374 pcre/pcrecpp_unittest.cc RE r("(\\w+)"); // matches a word RE 391 pcre/pcrecpp_unittest.cc RE r("(foo)|(bar)|(baz)"); RE 407 pcre/pcrecpp_unittest.cc CHECK(RE("(foo)|hello").FullMatch("hello", &a)); RE 424 pcre/pcrecpp_unittest.cc RE re("(\\w+)*b", options_ml); RE 431 pcre/pcrecpp_unittest.cc RE re2("(\\w+)*b", options_ml); RE 439 pcre/pcrecpp_unittest.cc RE re3("(\\w+)*b", options_mlr); RE 446 pcre/pcrecpp_unittest.cc RE re4("(\\w+)*b", options_mlr); RE 456 pcre/pcrecpp_unittest.cc string quoted = RE::QuoteMeta(unquoted); RE 457 pcre/pcrecpp_unittest.cc RE re(quoted, options); RE 465 pcre/pcrecpp_unittest.cc string quoted = RE::QuoteMeta(unquoted); RE 466 pcre/pcrecpp_unittest.cc RE re(quoted, options); RE 548 pcre/pcrecpp_unittest.cc RE(regex,options).FullMatch(str, &captured); RE 550 pcre/pcrecpp_unittest.cc RE(regex,options).PartialMatch(str, &captured); RE 570 pcre/pcrecpp_unittest.cc CHECK(RE(regex,options).FullMatch(str)); RE 572 pcre/pcrecpp_unittest.cc CHECK(RE(regex,options).PartialMatch(str)); RE 575 pcre/pcrecpp_unittest.cc CHECK(!RE(regex,options).FullMatch(str)); RE 577 pcre/pcrecpp_unittest.cc CHECK(!RE(regex,options).PartialMatch(str)); RE 681 pcre/pcrecpp_unittest.cc RE re("(world|universe)$", options); RE 756 pcre/pcrecpp_unittest.cc RE orig("HELLO.*world", options); RE 759 pcre/pcrecpp_unittest.cc RE copy1(orig); RE 762 pcre/pcrecpp_unittest.cc RE copy2("not a match"); RE 811 pcre/pcrecpp_unittest.cc CHECK(RE("h.*o").FullMatch("hello")); RE 812 pcre/pcrecpp_unittest.cc CHECK(!RE("h.*o").FullMatch("othello")); // Must be anchored at front RE 813 pcre/pcrecpp_unittest.cc CHECK(!RE("h.*o").FullMatch("hello!")); // Must be anchored at end RE 814 pcre/pcrecpp_unittest.cc CHECK(RE("a*").FullMatch("aaaa")); // Fullmatch with normal op RE 815 pcre/pcrecpp_unittest.cc CHECK(RE("a*?").FullMatch("aaaa")); // Fullmatch with nongreedy op RE 816 pcre/pcrecpp_unittest.cc CHECK(RE("a*?\\z").FullMatch("aaaa")); // Two unusual ops RE 821 pcre/pcrecpp_unittest.cc CHECK(RE("\\d+").FullMatch("1001")); RE 824 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("1001", &i)); RE 826 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-123", &i)); RE 828 pcre/pcrecpp_unittest.cc CHECK(!RE("()\\d+").FullMatch("10", &i)); RE 829 pcre/pcrecpp_unittest.cc CHECK(!RE("(\\d+)").FullMatch("1234567890123456789012345678901234567890", RE 833 pcre/pcrecpp_unittest.cc CHECK(RE("1(\\d*)4").FullMatch("1234", &i)); RE 835 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)\\d+").FullMatch("1234", &i)); RE 837 pcre/pcrecpp_unittest.cc CHECK(RE("(-\\d)\\d+").FullMatch("-1234", &i)); RE 839 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)").PartialMatch("1234", &i)); RE 841 pcre/pcrecpp_unittest.cc CHECK(RE("(-\\d)").PartialMatch("-1234", &i)); RE 845 pcre/pcrecpp_unittest.cc CHECK(RE("h(.*)o").FullMatch("hello", &s)); RE 850 pcre/pcrecpp_unittest.cc CHECK(RE("(\\w+):(\\d+)").FullMatch("ruby:1234", &sp, &i)); RE 856 pcre/pcrecpp_unittest.cc CHECK(RE("(\\w+):(\\d+)").FullMatch("ruby:1234", &s, &i)); RE 861 pcre/pcrecpp_unittest.cc CHECK(RE("(\\w+)(:)(\\d+)").FullMatch("ruby:1234", &s, (void*)NULL, &i)); RE 868 pcre/pcrecpp_unittest.cc CHECK(RE("(H)ello").FullMatch("Hello", &c)); RE 873 pcre/pcrecpp_unittest.cc CHECK(RE("(H)ello").FullMatch("Hello", &c)); RE 878 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); RE 879 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-100", &v)); CHECK_EQ(v, -100); RE 880 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("32767", &v)); CHECK_EQ(v, 32767); RE 881 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-32768", &v)); CHECK_EQ(v, -32768); RE 882 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch("-32769", &v)); RE 883 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch("32768", &v)); RE 887 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); RE 888 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("32767", &v)); CHECK_EQ(v, 32767); RE 889 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("65535", &v)); CHECK_EQ(v, 65535); RE 890 pcre/pcrecpp_unittest.cc CHECK(!RE("(\\d+)").FullMatch("65536", &v)); RE 896 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); RE 897 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-100", &v)); CHECK_EQ(v, -100); RE 898 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("2147483647", &v)); CHECK_EQ(v, max_value); RE 899 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-2147483648", &v)); CHECK_EQ(v, min_value); RE 900 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch("-2147483649", &v)); RE 901 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch("2147483648", &v)); RE 906 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); RE 907 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)").FullMatch("4294967295", &v)); CHECK_EQ(v, max_value); RE 908 pcre/pcrecpp_unittest.cc CHECK(!RE("(\\d+)").FullMatch("4294967296", &v)); RE 924 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); RE 925 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-100",&v)); CHECK_EQ(v, -100); RE 928 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, max_value); RE 931 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, min_value); RE 936 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); RE 941 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); RE 951 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("100",&v)); CHECK_EQ(v, 100); RE 952 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch("-100",&v2)); CHECK_EQ(v2, -100); RE 955 pcre/pcrecpp_unittest.cc CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, max_value); RE 959 pcre/pcrecpp_unittest.cc CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); RE 964 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("100", &v)); RE 965 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("-100.", &v)); RE 966 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("1e23", &v)); RE 970 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("100", &v)); RE 971 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("-100.", &v)); RE 972 pcre/pcrecpp_unittest.cc CHECK(RE("(.*)").FullMatch("1e23", &v)); RE 976 pcre/pcrecpp_unittest.cc CHECK(!RE("(\\d+)").FullMatch("x1001", &i)); RE 977 pcre/pcrecpp_unittest.cc CHECK(!RE("(\\d+)").FullMatch("1001x", &i)); RE 978 pcre/pcrecpp_unittest.cc CHECK(RE("x(\\d+)").FullMatch("x1001", &i)); CHECK_EQ(i, 1001); RE 979 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d+)x").FullMatch("1001x", &i)); CHECK_EQ(i, 1001); RE 982 pcre/pcrecpp_unittest.cc CHECK(RE("[0-9a-f+.-]{5,}").FullMatch("0abcd")); RE 983 pcre/pcrecpp_unittest.cc CHECK(RE("[0-9a-f+.-]{5,}").FullMatch("0abcde")); RE 984 pcre/pcrecpp_unittest.cc CHECK(!RE("[0-9a-f+.-]{5,}").FullMatch("0abc")); RE 987 pcre/pcrecpp_unittest.cc CHECK(RE("foo|bar|[A-Z]").FullMatch("foo")); RE 988 pcre/pcrecpp_unittest.cc CHECK(RE("foo|bar|[A-Z]").FullMatch("bar")); RE 989 pcre/pcrecpp_unittest.cc CHECK(RE("foo|bar|[A-Z]").FullMatch("X")); RE 990 pcre/pcrecpp_unittest.cc CHECK(!RE("foo|bar|[A-Z]").FullMatch("XY")); RE 993 pcre/pcrecpp_unittest.cc CHECK(RE("fo|foo").FullMatch("fo")); RE 994 pcre/pcrecpp_unittest.cc CHECK(RE("fo|foo").FullMatch("foo")); RE 995 pcre/pcrecpp_unittest.cc CHECK(RE("fo|foo$").FullMatch("fo")); RE 996 pcre/pcrecpp_unittest.cc CHECK(RE("fo|foo$").FullMatch("foo")); RE 997 pcre/pcrecpp_unittest.cc CHECK(RE("foo$").FullMatch("foo")); RE 998 pcre/pcrecpp_unittest.cc CHECK(!RE("foo\\$").FullMatch("foo$bar")); RE 999 pcre/pcrecpp_unittest.cc CHECK(!RE("fo|bar").FullMatch("fox")); RE 1006 pcre/pcrecpp_unittest.cc CHECK(!RE("foo$").PartialMatch("foo\n")); RE 1011 pcre/pcrecpp_unittest.cc CHECK(RE("").FullMatch("")); RE 1014 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d){1}").FullMatch("1", RE 1019 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)").FullMatch("12", RE 1025 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)").FullMatch("123", RE 1032 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)(\\d)").FullMatch("1234", RE 1040 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("12345", RE 1050 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("123456", RE 1061 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("1234567", RE 1073 pcre/pcrecpp_unittest.cc CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)" RE 1101 pcre/pcrecpp_unittest.cc CHECK(RE("h.*o").PartialMatch("hello")); RE 1102 pcre/pcrecpp_unittest.cc CHECK(RE("h.*o").PartialMatch("othello")); RE 1103 pcre/pcrecpp_unittest.cc CHECK(RE("h.*o").PartialMatch("hello!")); RE 1104 pcre/pcrecpp_unittest.cc CHECK(RE("((((((((((((((((((((x))))))))))))))))))))").PartialMatch("x")); RE 1119 pcre/pcrecpp_unittest.cc const RE re(kPattern); RE 1125 pcre/pcrecpp_unittest.cc RE re("foo"); RE 1149 pcre/pcrecpp_unittest.cc RE re_test1("........."); RE 1151 pcre/pcrecpp_unittest.cc RE re_test2("...", pcrecpp::UTF8()); RE 1157 pcre/pcrecpp_unittest.cc RE re_test3("(.)"); RE 1160 pcre/pcrecpp_unittest.cc RE re_test4("(.)", pcrecpp::UTF8()); RE 1165 pcre/pcrecpp_unittest.cc RE re_test5(utf8_string); RE 1167 pcre/pcrecpp_unittest.cc RE re_test6(utf8_string, pcrecpp::UTF8()); RE 1171 pcre/pcrecpp_unittest.cc RE re_test7(utf8_pattern); RE 1173 pcre/pcrecpp_unittest.cc RE re_test8(utf8_pattern, pcrecpp::UTF8()); RE 1183 pcre/pcrecpp_unittest.cc RE match_sentence(pattern); RE 1184 pcre/pcrecpp_unittest.cc RE match_sentence_re(pattern, pcrecpp::UTF8()); RE 1193 pcre/pcrecpp_unittest.cc RE match_sentence(pattern); RE 1194 pcre/pcrecpp_unittest.cc RE match_sentence_re(pattern, pcrecpp::UTF8()); RE 1203 pcre/pcrecpp_unittest.cc { RE re("a\\1"); CHECK(!re.error().empty()); } RE 1205 pcre/pcrecpp_unittest.cc RE re("a[x"); RE 1209 pcre/pcrecpp_unittest.cc RE re("a[z-a]"); RE 1213 pcre/pcrecpp_unittest.cc RE re("a[[:foobar:]]"); RE 1217 pcre/pcrecpp_unittest.cc RE re("a(b"); RE 1221 pcre/pcrecpp_unittest.cc RE re("a\\");