/third_party/mesa3d/src/gtest/include/gtest/internal/ |
H A D | gtest-death-test-internal.h | 166 // and interpreted as a regex (rather than an Eq matcher) for legacy 169 ::testing::internal::RE regex) { in MakeDeathTestMatcher() 170 return ContainsRegex(regex.pattern()); in MakeDeathTestMatcher() 172 inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { in MakeDeathTestMatcher() argument 173 return ContainsRegex(regex); in MakeDeathTestMatcher() 176 const ::std::string& regex) { in MakeDeathTestMatcher() 177 return ContainsRegex(regex); in MakeDeathTestMatcher() 252 // The regex object is not evaluated, but it is used to prevent "unused" 168 MakeDeathTestMatcher( ::testing::internal::RE regex) MakeDeathTestMatcher() argument 175 MakeDeathTestMatcher( const ::std::string& regex) MakeDeathTestMatcher() argument
|
/third_party/node/deps/googletest/include/gtest/internal/ |
H A D | gtest-death-test-internal.h | 174 // and interpreted as a regex (rather than an Eq matcher) for legacy 177 ::testing::internal::RE regex) { in MakeDeathTestMatcher() 178 return ContainsRegex(regex.pattern()); in MakeDeathTestMatcher() 180 inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { in MakeDeathTestMatcher() argument 181 return ContainsRegex(regex); in MakeDeathTestMatcher() 184 const ::std::string& regex) { in MakeDeathTestMatcher() 185 return ContainsRegex(regex); in MakeDeathTestMatcher() 258 // The regex object is not evaluated, but it is used to prevent "unused" 176 MakeDeathTestMatcher( ::testing::internal::RE regex) MakeDeathTestMatcher() argument 183 MakeDeathTestMatcher( const ::std::string& regex) MakeDeathTestMatcher() argument
|
/third_party/rust/crates/regex/tests/ |
H A D | macros.rs | 16 let re = regex!($re); 28 let r = regex!($re); 61 let r = regex!($re); 87 let r = regex!($re); 144 let re = regex!($re); 155 let re = regex!($re);
|
H A D | macros_str.rs | 5 macro_rules! use_ { ($($path: tt)*) => { use regex::$($path)*; } } 11 use regex::NoExpand; 25 let re = regex!($re);
|
H A D | macros_bytes.rs | 5 macro_rules! use_ { ($($path: tt)*) => { use regex::bytes::$($path)*; } } 11 use regex::bytes::NoExpand; 31 let re = regex!($re);
|
H A D | consistent.rs | 1 use regex::internal::ExecBuilder; 3 /// Given a regex, check if all of the backends produce the same 9 /// will match any given regex, so this will probably just 16 /// the AST of the input regex. The right way to do this probably 124 for regex in backends[1..].iter() { in check_backends() 125 total_passed += quickcheck_regex_eq(&backends[0], regex)?; in check_backends() 235 checker!(string_checker, ::regex::Regex, |gen| String::arbitrary(gen)); 236 checker!(bytes_checker, ::regex::bytes::Regex, |gen| Vec::<u8>::arbitrary(
|
/third_party/rust/crates/regex/bench/src/ |
H A D | bench.rs | 3 // It's too annoying to carefully define macros based on which regex engines 17 pub use regex::{Regex, RegexSet}; 19 pub use regex::bytes::{Regex, RegexSet}; 33 // Usage: regex!(pattern) 40 macro_rules! regex { macros 60 // regex accepts in its `is_match` and `find_iter` methods. 91 // a particular haystack. If the regex doesn't match, then the benchmark fails. 101 bench_is_match!($name, true, regex!($pattern), $haystack); 108 // a particular haystack. If the regex matches, then the benchmark fails. 118 bench_is_match!($name, false, regex!( [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_events_filter.c | 710 cmp = pred->regex.match(addr, &pred->regex, pred->regex.field_len); in filter_pred_string() 723 cmp = pred->regex.match(str, &pred->regex, len); in filter_pchar() 773 cmp = pred->regex.match(addr, &pred->regex, str_len); in filter_pred_strloc() 811 cmp = pred->regex.match(current->comm, &pred->regex, in filter_pred_comm() 822 * regex_match_foo - Basic regex callback [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/file_hooking/ |
H A D | shader_cache_file_hooking.cpp | 18 #include <regex> 27 std::regex expr(kMetalCacheExpr); in HookedOpen() 50 std::regex expr(kMetalCacheExpr); in HookedFopen()
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_filelist.py | 52 for glob, regex in ( 62 regex = regex % {'sep': sep} 63 self.assertEqual(glob_to_re(glob), regex) 134 # not regex 139 # is a regex 140 regex = re.compile('a') 142 translate_pattern(regex, anchor=True, is_regex=True), 143 regex) 145 # plain string flagged as regex [all...] |
/third_party/curl/scripts/ |
H A D | completion.pl | 41 my $regex = '\s+(?:(-[^\s]+),\s)?(--[^\s]+)\s*(\<.+?\>)?\s+(.*)'; 42 my @opts = parse_main_opts('--help all', $regex); 76 my ($cmd, $regex) = @_; 82 my ($short, $long, $arg, $desc) = ($line =~ /^$regex/) or next;
|
/third_party/benchmark/src/ |
H A D | re.h | 25 // No explicit regex selection; detect based on builtin hints. 33 // Prefer C regex libraries when compiling w/o exceptions so that we can 42 #include <regex> 46 #include <regex.h> 80 std::regex re_; 96 re_ = std::regex(spec, std::regex_constants::extended); in Init()
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/ |
H A D | NfaBuilder.java | 17 package com.google.i18n.phonenumbers.metadata.regex; 20 import static com.google.i18n.phonenumbers.metadata.regex.Node.INITIAL; 21 import static com.google.i18n.phonenumbers.metadata.regex.Node.TERMINAL; 27 import com.google.i18n.phonenumbers.metadata.regex.Edge.SimpleEdge;
|
H A D | AnyPathTest.java | 17 package com.google.i18n.phonenumbers.metadata.regex; 20 import static com.google.i18n.phonenumbers.metadata.regex.AnyPath.EMPTY; 21 import static com.google.i18n.phonenumbers.metadata.regex.AnyPath.OPTIONAL; 22 import static com.google.i18n.phonenumbers.metadata.regex.AnyPath.SINGLE;
|
H A D | TrailingPathOptimizerTest.java | 17 package com.google.i18n.phonenumbers.metadata.regex; 20 import static com.google.i18n.phonenumbers.metadata.regex.Node.INITIAL; 21 import static com.google.i18n.phonenumbers.metadata.regex.Node.TERMINAL; 24 import com.google.i18n.phonenumbers.metadata.regex.Edge.SimpleEdge;
|
H A D | NodeTest.java | 17 package com.google.i18n.phonenumbers.metadata.regex; 20 import static com.google.i18n.phonenumbers.metadata.regex.Node.INITIAL; 21 import static com.google.i18n.phonenumbers.metadata.regex.Node.TERMINAL;
|
/third_party/skia/src/sksl/lex/ |
H A D | RegexParser.cpp | 16 this->regex(); in parse() 109 this->regex(); in group() 161 void RegexParser::regex() { in regex() function in RegexParser 166 this->regex(); in regex()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_events_filter.c | 80 struct regex *regex; member 203 kfree(pred->regex); in free_predicate() 842 cmp = pred->regex->match(addr, pred->regex, pred->regex->field_len); in filter_pred_string() 855 cmp = pred->regex->match(str, pred->regex, len); in filter_pchar() 905 cmp = pred->regex->match(addr, pred->regex, str_le in filter_pred_strloc() [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
H A D | rc_test_helpers.c | 32 #include <regex.h> 68 regex_t regex; in is_whitespace() local 69 if (regcomp(®ex, "^[ \n]+$", REG_EXTENDED)) { in is_whitespace() 70 fprintf(stderr, "Failed to compile whitespace regex\n"); in is_whitespace() 73 return regexec(®ex, str, 0, NULL, 0) != REG_NOMATCH; in is_whitespace() 88 regex_t regex; in regex_helper() local 92 err_code = regcomp(®ex, regex_str, REG_EXTENDED); in regex_helper() 94 regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); in regex_helper() 95 fprintf(stderr, "Failed to compile regex: %s\n", err_buf); in regex_helper() 99 err_code = regexec(®ex, search_st in regex_helper() [all...] |
/third_party/libabigail/src/ |
H A D | abg-corpus-priv.h | 19 #include "abg-regex.h" 33 using regex::regex_t_sptr; 113 regex_t_sptr r = regex::compile(*i); in compiled_regex_fns_suppress() 135 regex_t_sptr r = regex::compile(*i); in compiled_regex_fns_keep() 157 regex_t_sptr r = regex::compile(*i); in compiled_regex_vars_suppress() 179 regex_t_sptr r = regex::compile(*i); in compiled_regex_vars_keep() 511 if (regex::match(*i, frep)) in keep_wrt_regex_of_fns_to_suppress() 544 if (regex::match(*i, frep)) in keep_wrt_regex_of_fns_to_keep() 618 if (regex::match(*i, frep)) in keep_wrt_regex_of_vars_to_suppress() 652 if (regex in keep_wrt_regex_of_vars_to_keep() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
H A D | HLSLOutput_test.cpp | 10 #include <regex> 220 EXPECT_TRUE(foundInCodeRegex(std::regex("_arr(\\d)*\\[2\\]"))); in TEST_F() 243 // EXPECT_TRUE(foundInCodeRegex(std::regex("_arr(\\d*)\\[2\\](.|\\r|\\n)*_arr(?!\\1)\\d*\\[2\\]"))); in TEST_F() 245 EXPECT_TRUE(foundInCodeRegex(std::regex("_arr(\\d)*\\[2\\]"), &m)); in TEST_F()
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
H A D | compiler_test.h | 13 #include <regex> 70 const std::regex ®exToFind, 83 bool foundInCodeRegex(const std::regex ®exToFind, std::smatch *match = nullptr) const;
|
/third_party/skia/gn/ |
H A D | highest_version_dir.py | 15 regex = re.compile(sys.argv[2]) variable 17 print(sorted(filter(regex.match, os.listdir(dirpath)))[-1])
|
/kernel/linux/linux-5.10/tools/bpf/ |
H A D | bpf_jit_disasm.c | 25 #include <regex.h> 179 regex_t regex; in get_last_jit_image() local 185 ret = regcomp(®ex, "flen=[[:alnum:]]+ proglen=[[:digit:]]+ " in get_last_jit_image() 193 ret = regexec(®ex, ptr, 1, pmatch, 0); in get_last_jit_image() 206 regfree(®ex); in get_last_jit_image() 247 regfree(®ex); in get_last_jit_image()
|
/kernel/linux/linux-6.6/tools/bpf/ |
H A D | bpf_jit_disasm.c | 25 #include <regex.h> 182 regex_t regex; in get_last_jit_image() local 188 ret = regcomp(®ex, "flen=[[:alnum:]]+ proglen=[[:digit:]]+ " in get_last_jit_image() 196 ret = regexec(®ex, ptr, 1, pmatch, 0); in get_last_jit_image() 209 regfree(®ex); in get_last_jit_image() 250 regfree(®ex); in get_last_jit_image()
|