/third_party/python/Lib/test/ |
H A D | test_faulthandler.py | 30 regex = header 31 regex += ' File "<string>", line %s in func\n' % lineno1 32 regex += ' File "<string>", line %s in <module>' % lineno2 34 return '^' + (regex + '\n') * (min_count - 1) + regex 36 return '^' + regex + '$' 105 regex = [f'^{fatal_error}'] 107 regex.append("Python runtime state: initialized") 108 regex.append('') 109 regex [all...] |
H A D | test_regrtest.py | 407 def regex_search(self, regex, output): 408 match = re.search(regex, output, re.MULTILINE) 410 self.fail("%r not found in %r" % (regex, output)) 413 def check_line(self, output, regex): 414 regex = re.compile(r'^' + regex, re.MULTILINE) 415 self.assertRegex(output, regex) 418 regex = (r'^%s\[ *[0-9]+(?:/ *[0-9]+)*\] (%s)' 420 parser = re.finditer(regex, output, re.MULTILINE) 453 regex [all...] |
/third_party/selinux/libselinux/src/ |
H A D | regex.h | 70 void regex_data_free(struct regex_data *regex) ; 79 * @arg regex If successful, the structure returned through *regex was allocated 89 int regex_prepare_data(struct regex_data **regex, char const *pattern_string, 97 * @arg regex If successful, the structure returned through *regex was allocated 102 * into regex, otherwise set to false to indicate later 109 struct regex_data **regex, 118 * @arg regex The precomplied regular expression data. 123 int regex_writef(struct regex_data *regex, FIL [all...] |
H A D | label_file.h | 12 * regex.h/c were introduced to hold all dependencies on the regular 13 * expression back-end when we started supporting PCRE2. regex.h defines a 17 #include "regex.h" 50 struct regex_data * regex; /* backend dependent regular expression data */ member 51 bool regex_compiled; /* bool to indicate if the regex is compiled */ 52 pthread_mutex_t regex_lock; /* lock for lazy compilation of regex */ 304 * the root directory or a regex that is too complex for us). */ 373 /* Check if another thread compiled the regex while we waited in compile_regex() 407 rc = regex_prepare_data(&spec->regex, anchored_regex, &error_data); in compile_regex() 439 char *regex in process_line() local [all...] |
/third_party/ffmpeg/compat/windows/ |
H A D | makedef | 64 regex="none" 92 if [ "${regex}" = "none" ]; then 93 regex="${exp}" 95 regex="${regex};${exp}" 121 for exp in ${regex}; do
|
/third_party/rust/crates/which-rs/src/ |
H A D | lib.rs | 23 #[cfg(feature = "regex")] 113 /// Only available when feature `regex` is enabled. 117 /// * `regex` - A regular expression to match binaries with 124 /// use regex::Regex; 138 /// use regex::Regex; 143 #[cfg(feature = "regex")] 144 pub fn which_re(regex: impl Borrow<Regex>) -> Result<impl Iterator<Item = path::PathBuf>> { in which_re() 145 which_re_in(regex, env::var_os("PATH")) in which_re() 161 /// Only available when feature `regex` is enabled. 165 /// * `regex` 308 pub fn regex(mut self, regex: Regex) -> Self { regex() functions [all...] |
/third_party/vixl/test/aarch64/ |
H A D | test-debugger-aarch64.h | 30 #include <regex> 124 std::regex regex(cmd + expected); \ 125 if (!std::regex_search(ostream.str(), regex)) { \ 152 std::regex regex(regex_str); in GetInstructionAddress() 153 if (std::regex_search(str, sub_matches, regex) && sub_matches.size() == 3) { in GetInstructionAddress()
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/ |
H A D | RegexGeneratorTest.java | 17 package com.google.i18n.phonenumbers.metadata.regex; 21 import static com.google.i18n.phonenumbers.metadata.regex.RegexGenerator.basic; 170 // This does not check that the generated regex is the same as the input, but it does test some 174 String regex = basic().toRegex(ranges(specs)); in assertMatches() 175 assertThat(regex).isEqualTo(pattern); in assertMatches() 180 assertThat(number).matches(regex); in assertMatches() 184 assertThat(number).doesNotMatch(regex); in assertMatches() 189 String regex = generator.toRegex(dfa); in assertRegex() 191 assertThat(regex).isEqualTo(expected); in assertRegex()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
H A D | Regex.cpp | 24 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() argument 27 preg->re_endp = regex.end(); in Regex() 34 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex() 37 Regex::Regex(Regex &®ex) { in Regex() argument 38 preg = regex.preg; in Regex() 39 error = regex.error; in Regex() 40 regex.preg = nullptr; in Regex() 41 regex.error = REG_BADPAT; in Regex() 62 /// getNumMatches - In a valid regex, return the number of parenthesized 190 // Check for regex metacharacter in isLiteralERE() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | Regex.cpp | 21 // xlocale.h, this will cause trouble, because of missing regex-related types. 28 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() argument 31 preg->re_endp = regex.end(); in Regex() 38 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex() 41 Regex::Regex(Regex &®ex) { in Regex() argument 42 preg = regex.preg; in Regex() 43 error = regex.error; in Regex() 44 regex.preg = nullptr; in Regex() 45 regex.error = REG_BADPAT; in Regex() 57 /// Utility to convert a regex erro [all...] |
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
H A D | x86_arch_prctl.sh | 16 regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+ARCH_([[:alnum:]_]+)[[:space:]]+(%s[[:xdigit:]]+).*' ${prefix}` 18 egrep -q $regex ${prctl_arch_header} && \ 19 (egrep $regex ${prctl_arch_header} | \ 20 sed -r "s/$regex/\2 \1/g" | \
|
/kernel/linux/linux-6.6/tools/perf/trace/beauty/ |
H A D | x86_arch_prctl.sh | 16 regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+ARCH_([[:alnum:]_]+)[[:space:]]+(%s[[:xdigit:]]+).*' ${prefix}` 18 grep -E -q $regex ${prctl_arch_header} && \ 19 (grep -E $regex ${prctl_arch_header} | \ 20 sed -r "s/$regex/\2 \1/g" | \
|
/third_party/icu/tools/scripts/cpysearch/ |
H A D | Cpy.pm | 35 my ($glob, $i, $len, $regex); 39 $regex = ""; 64 my $s = substr($regex, $i, $j - $i); 77 $regex .= $out; 79 return $regex; 109 # ignore regex
|
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
H A D | log_section.py | 41 regex: Union[Pattern, str] 54 if match := re.search(self.regex, lava_log_line["msg"]): 67 regex=re.compile(r"<?STARTTC>? ([^>]*)"), 74 regex=re.compile(r"<?STARTRUN>? ([^>]*)"), 81 regex=re.compile(r"ENDTC>? ([^>]+)"),
|
/third_party/libabigail/src/ |
H A D | abg-regex.cc | 21 #include "abg-regex.h" 39 regex::regex_t_sptr 41 {return regex::regex_t_sptr(p, regex::regex_t_deleter());} in build_sptr() 49 regex::regex_t_sptr 53 namespace regex namespace 56 /// Escape regex special charaters in input string. 79 /// Generate a regex pattern equivalent to testing set membership. 81 /// A string will match the resulting pattern regex, if and only if it 86 /// @return a regex patter [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | v8-regex.cc | 5 #include "src/inspector/v8-regex.h" 38 v8::Local<v8::RegExp> regex; in V8Regex() local 41 .ToLocal(®ex)) in V8Regex() 42 m_regex.Reset(isolate, regex); in V8Regex() 70 v8::Local<v8::RegExp> regex = m_regex.Get(isolate); in match() local 72 if (!regex->Get(context, toV8StringInternalized(isolate, "exec")) in match() 79 ->Call(context, regex, arraysize(argv), argv) in match()
|
/third_party/libabigail/include/ |
H A D | abg-regex.h | 8 /// Wrappers around regex types and functions. 13 #include <regex.h> 24 /// Namespace for regex types and functions. 25 namespace regex namespace 46 /// A class to hold a reference to a string to regex escape. 65 }// end namespace regex 78 regex::regex_t_sptr 87 regex::regex_t_sptr
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Regex.h | 50 Regex &operator=(Regex regex) { in operator =() argument 51 std::swap(preg, regex.preg); in operator =() 52 std::swap(error, regex.error); in operator =() 55 Regex(Regex &®ex); 58 /// isValid - returns the error encountered during regex compilation, or 62 /// getNumMatches - In a valid regex, return the number of parenthesized 64 /// many entries plus one for the whole regex (as element 0). 67 /// matches - Match the regex against a given \p String. 76 /// sub - Return the result of replacing the first match of the regex in 93 /// \brief Turn String into a regex b [all...] |
/third_party/node/lib/internal/ |
H A D | util.js | 72 const colorRegExp = /\u001b\[\d\d?m/g; // eslint-disable-line no-control-regex 718 function SideEffectFreeRegExpPrototypeExec(regex, string) { 720 return FunctionPrototypeCall(RegExpFromAnotherRealm.prototype.exec, regex, string); 724 function getCrossRelmRegex(regex) { 725 const cached = crossRelmRegexes.get(regex); 729 if (RegExpPrototypeGetHasIndices(regex)) flagString += 'd'; 730 if (RegExpPrototypeGetGlobal(regex)) flagString += 'g'; 731 if (RegExpPrototypeGetIgnoreCase(regex)) flagString += 'i'; 732 if (RegExpPrototypeGetMultiline(regex)) flagString += 'm'; 733 if (RegExpPrototypeGetDotAll(regex)) flagStrin [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Regex.h | 52 Regex &operator=(Regex regex) { in operator =() argument 53 std::swap(preg, regex.preg); in operator =() 54 std::swap(error, regex.error); in operator =() 57 Regex(Regex &®ex); 60 /// isValid - returns the error encountered during regex compilation, if 65 /// getNumMatches - In a valid regex, return the number of parenthesized 67 /// many entries plus one for the whole regex (as element 0). 70 /// matches - Match the regex against a given \p String. 83 /// sub - Return the result of replacing the first match of the regex in 100 /// Turn String into a regex b [all...] |
/third_party/rust/crates/once_cell/examples/ |
H A D | regex.rs | 3 use regex::Regex; 5 macro_rules! regex { macros 7 static RE: once_cell::sync::OnceCell<regex::Regex> = once_cell::sync::OnceCell::new(); 8 RE.get_or_init(|| regex::Regex::new($re).unwrap()) 32 let re: &Regex = regex!( in fast()
|
/third_party/icu/icu4c/source/i18n/ |
H A D | repattrn.cpp | 17 #include "unicode/regex.h" 317 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 353 compiler.compile(regex, pe, status); in compile() 368 RegexPattern::compile(UText *regex, in compile() argument 404 compiler.compile(regex, pe, status); in compile() 418 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 422 return compile(regex, 0, pe, err); in compile() 430 RegexPattern::compile(UText *regex, in compile() argument 434 return compile(regex, 0, pe, err); in compile() 442 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 455 compile(UText *regex, uint32_t flags, UErrorCode &err) compile() argument 522 matches(const UnicodeString ®ex, const UnicodeString &input, UParseError &pe, UErrorCode &status) matches() argument 546 matches(UText *regex, UText *input, UParseError &pe, UErrorCode &status) matches() argument [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | repattrn.cpp | 17 #include "unicode/regex.h" 317 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 353 compiler.compile(regex, pe, status); in compile() 368 RegexPattern::compile(UText *regex, in compile() argument 404 compiler.compile(regex, pe, status); in compile() 418 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 422 return compile(regex, 0, pe, err); in compile() 430 RegexPattern::compile(UText *regex, in compile() argument 434 return compile(regex, 0, pe, err); in compile() 442 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 455 compile(UText *regex, uint32_t flags, UErrorCode &err) compile() argument 522 matches(const UnicodeString ®ex, const UnicodeString &input, UParseError &pe, UErrorCode &status) matches() argument 546 matches(UText *regex, UText *input, UParseError &pe, UErrorCode &status) matches() argument [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | repattrn.cpp | 17 #include "unicode/regex.h" 317 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 353 compiler.compile(regex, pe, status); in compile() 368 RegexPattern::compile(UText *regex, in compile() argument 404 compiler.compile(regex, pe, status); in compile() 418 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 422 return compile(regex, 0, pe, err); in compile() 430 RegexPattern::compile(UText *regex, in compile() argument 434 return compile(regex, 0, pe, err); in compile() 442 RegexPattern::compile(const UnicodeString ®ex, in compile() argument 455 compile(UText *regex, uint32_t flags, UErrorCode &err) compile() argument 522 matches(const UnicodeString ®ex, const UnicodeString &input, UParseError &pe, UErrorCode &status) matches() argument 546 matches(UText *regex, UText *input, UParseError &pe, UErrorCode &status) matches() argument [all...] |
/kernel/linux/linux-5.10/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 79 # Defaults for dynamically discovered regex's 82 # Dyanically discovered regex 85 # Static regex used. Specified like this for readability and for use with /o 94 my $regex; 98 $regex = $default; 104 $regex = $1; 105 $regex =~ s/%p/\([0-9a-f]*\)/g; 106 $regex =~ s/%d/\([-0-9]*\)/g; 107 $regex =~ s/%lu/\([0-9]*\)/g; 114 foreach $tuple (split /\s/, $regex) { [all...] |