| /external/selinux/libselinux/src/ |
| D | regex.c | 7 #include "regex.h" 67 pcre2_code *regex; /* compiled regular expression */ member 70 int regex_prepare_data(struct regex_data **regex, char const *pattern_string, in regex_prepare_data() argument 75 *regex = regex_data_create(); in regex_prepare_data() 76 if (!(*regex)) in regex_prepare_data() 79 (*regex)->regex = pcre2_compile( in regex_prepare_data() 82 if (!(*regex)->regex) { in regex_prepare_data() 89 regex_data_free(*regex); in regex_prepare_data() 90 *regex = NULL; in regex_prepare_data() 105 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument [all …]
|
| /external/rust/crates/regex/tests/ |
| D | test_default.rs | 3 use regex; 11 // regex and the input. Other dynamic tests explicitly set the engine to use. 14 use regex::Regex; 15 Regex::new($re) 19 macro_rules! regex { macro 27 use regex::RegexSet; 66 assert!(regex::Regex::new(r"(?-u)\xFF").is_err()); in disallow_non_utf8() 67 assert!(regex::Regex::new(r"(?-u).").is_err()); in disallow_non_utf8() 68 assert!(regex::Regex::new(r"(?-u)[\xFF]").is_err()); in disallow_non_utf8() 69 assert!(regex::Regex::new(r"(?-u)☃").is_err()); in disallow_non_utf8() [all …]
|
| /external/rust/crates/combine/src/parser/ |
| D | regex.rs | 1 //! Module containing regex parsers on streams returning ranges of `&str` or `&[u8]`. 3 //! All regex parsers are overloaded on `&str` and `&[u8]` ranges and can take a `Regex` by value 6 //! Enabled using the `regex` feature (for `regex-0.2`) or the `regex-1` feature for `regex-1.0`. 10 //! use regex::{bytes, Regex}; 12 //! use combine::parser::regex::{find_many, match_}; 15 //! let regex = bytes::Regex::new("[0-9]+").unwrap(); 16 //! // Shared references to any regex works as well 18 //! find_many(®ex).parse(&b"123 456 "[..]), 22 //! find_many(regex).parse(&b""[..]), 26 //! static REGEX: Lazy<Regex> = Lazy::new(|| Regex::new("[:alpha:]+").unwrap()); [all …]
|
| /external/rust/crates/regex/ |
| D | CHANGELOG.md | 3 This is a small release that fixes a bug in `Regex::shortest_match_at` that 8 * [BUG #969](https://github.com/rust-lang/regex/issues/969): 9 Fix a bug in how the reverse DFA was called for `Regex::shortest_match_at`. 18 * [BUG #967](https://github.com/rust-lang/regex/issues/967): 25 regex crate. 29 * [PERF #930](https://github.com/rust-lang/regex/pull/930): 34 * [BUG #945](https://github.com/rust-lang/regex/issues/945): 44 * [FEATURE #832](https://github.com/rust-lang/regex/issues/916): 54 * [FEATURE #832](https://github.com/rust-lang/regex/pull/832): 56 * [FEATURE #857](https://github.com/rust-lang/regex/pull/857): [all …]
|
| D | README.md | 1 regex chapter 10 …[Build status](https://github.com/rust-lang/regex/workflows/ci/badge.svg)](https://github.com/rust… 11 [](https://crates.io/crates/regex) 12 …ps://img.shields.io/badge/rust-1.41.1%2B-blue.svg?maxAge=3600)](https://github.com/rust-lang/regex) 16 [Module documentation with examples](https://docs.rs/regex). 22 [`Regex` type](https://docs.rs/regex/*/regex/struct.Regex.html). 26 To bring this crate into your repository, either add `regex` to your 27 `Cargo.toml`, or run `cargo add regex`. 33 use regex::Regex; 36 let re = Regex::new(r"(?x) [all …]
|
| D | Cargo.toml.orig | 2 name = "regex" 7 repository = "https://github.com/rust-lang/regex" 8 documentation = "https://docs.rs/regex" 9 homepage = "https://github.com/rust-lang/regex" 21 "bench", "regex-capi", "regex-debug", "regex-syntax", 33 # https://docs.rs/regex/*/#crate-features 35 default = ["std", "perf", "unicode", "regex-syntax/default"] 39 # The 'std' feature permits the regex crate to use the standard library. This 40 # is intended to support future use cases where the regex crate may be able 43 # will prevent regex from compiling. [all …]
|
| /external/jazzer-api/sanitizers/src/main/java/com/code_intelligence/jazzer/sanitizers/ |
| D | RegexRoadblocks.java | 28 import java.util.regex.Matcher; 29 import java.util.regex.Pattern; 68 @MethodHook(type = HookType.AFTER, targetClassName = "java.util.regex.Pattern$Node", 70 targetMethodDescriptor = "(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z", 73 "java.util.regex.Matcher", 74 "java.util.regex.Pattern$BackRef", 75 "java.util.regex.Pattern$Behind", 76 "java.util.regex.Pattern$BehindS", 77 "java.util.regex.Pattern$BmpCharProperty", 78 "java.util.regex.Pattern$BmpCharPropertyGreedy", [all …]
|
| /external/perfetto/src/trace_processor/util/ |
| D | regex.h | 26 #include <regex.h> 31 namespace regex { 41 // Implements regex parsing and regex search based on C library `regex.h`. 43 class Regex { 46 ~Regex() { in ~Regex() 51 Regex(Regex&) = delete; 52 Regex(Regex&& other) { in Regex() function 56 Regex& operator=(Regex&& other) { 57 this->~Regex(); 58 new (this) Regex(std::move(other)); [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/include/boost/regex/v5/ |
| D | regex.hpp | 14 * FILE regex.cpp 18 * entry point for the template regex code. 28 #include <boost/regex/config.hpp> 29 #include <boost/regex/v5/regex_workaround.hpp> 31 #include <boost/regex/regex_traits.hpp> 32 #include <boost/regex/v5/error_type.hpp> 33 #include <boost/regex/v5/match_flags.hpp> 34 #include <boost/regex/v5/regex_raw_buffer.hpp> 35 #include <boost/regex/pattern_except.hpp> 36 #include <boost/regex/v5/char_regex_traits.hpp> [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/include/boost/regex/v4/ |
| D | regex.hpp | 14 * FILE regex.cpp 18 * entry point for the template regex code. 29 #include <boost/regex/config.hpp> 32 #include <boost/regex/v4/regex_workaround.hpp> 39 #include <boost/regex/regex_traits.hpp> 42 #include <boost/regex/v4/error_type.hpp> 45 #include <boost/regex/v4/match_flags.hpp> 48 #include <boost/regex/v4/regex_raw_buffer.hpp> 51 #include <boost/regex/pattern_except.hpp> 55 #include <boost/regex/v4/char_regex_traits.hpp> [all …]
|
| /external/truth/core/src/main/java/com/google/common/truth/ |
| D | StringSubject.java | 24 import java.util.regex.Matcher; 25 import java.util.regex.Pattern; 119 /** Fails if the string does not match the given regex. */ 120 public void matches(@Nullable String regex) { in matches() argument 121 checkNotNull(regex); in matches() 123 failWithActual("expected a string that matches", regex); in matches() 124 } else if (!actual.matches(regex)) { in matches() 125 if (regex.equals(actual)) { in matches() 127 fact("expected to match", regex), in matches() 131 failWithActual("expected to match", regex); in matches() [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/example/ |
| D | Jamfile.v2 | 22 rule regex-test-run ( sources + : input * : name * ) 40 test-suite regex-examples : 42 [ regex-test-run timer/regex_timer.cpp : $(BOOST_ROOT)/libs/regex/example/timer/input_script.txt ] 43 [ regex-test-run grep/grep.cpp ../../program_options/build//boost_program_options/<link>static : -n… 44 [ regex-test-run snippets/credit_card_example.cpp ] 45 [ regex-test-run snippets/mfc_example.cpp ] 46 [ regex-test-run snippets/icu_example.cpp ] 47 [ regex-test-run snippets/partial_regex_grep.cpp : $(BOOST_ROOT)/libs/regex/index.htm ] 48 [ regex-test-run snippets/partial_regex_iterate.cpp : $(BOOST_ROOT)/libs/regex/index.htm ] 49 [ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ] [all …]
|
| /external/llvm/unittests/Support/ |
| D | RegexTest.cpp | 1 //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===// 10 #include "llvm/Support/Regex.h" 22 Regex r1("^[0-9]+$"); in TEST_F() 28 Regex r2("[0-9]+"); in TEST_F() 33 Regex r3("[0-9]+([a-f])?:([0-9]+)"); in TEST_F() 46 Regex r4("a[^b]+b"); in TEST_F() 57 Regex r5(NulPattern); in TEST_F() 65 Regex r1("([a-z]+)_\\1"); in TEST_F() 71 Regex r2("a([0-9])b\\1c\\1"); in TEST_F() 77 Regex r3("a([0-9])([a-z])b\\1\\2"); in TEST_F() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/re/re.alg/re.alg.match/ |
| D | inverted_character_classes.pass.cpp | 9 // <regex> 15 #include <regex> 21 assert(std::regex_match("X", std::regex("[X]"))); in main() 22 assert(std::regex_match("X", std::regex("[XY]"))); in main() 23 assert(!std::regex_match("X", std::regex("[^X]"))); in main() 24 assert(!std::regex_match("X", std::regex("[^XY]"))); in main() 26 assert(std::regex_match("X", std::regex("[\\S]"))); in main() 27 assert(!std::regex_match("X", std::regex("[^\\S]"))); in main() 29 assert(!std::regex_match("X", std::regex("[\\s]"))); in main() 30 assert(std::regex_match("X", std::regex("[^\\s]"))); in main() [all …]
|
| /external/rust/crates/regex/examples/ |
| D | shootout-regex-dna-single.rs | 10 macro_rules! regex { macro 12 ::regex::Regex::new($re).unwrap() 21 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main() 25 regex!("agggtaaa|tttaccct"), in main() 26 regex!("[cgt]gggtaaa|tttaccc[acg]"), in main() 27 regex!("a[act]ggtaaa|tttacc[agt]t"), in main() 28 regex!("ag[act]gtaaa|tttac[agt]ct"), in main() 29 regex!("agg[act]taaa|ttta[agt]cct"), in main() 30 regex!("aggg[acg]aaa|ttt[cgt]ccct"), in main() 31 regex!("agggt[cgt]aa|tt[acg]accct"), in main() [all …]
|
| D | shootout-regex-dna.rs | 12 macro_rules! regex { macro 14 ::regex::Regex::new($re).unwrap() 23 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, "").into_owned(); in main() 28 regex!("agggtaaa|tttaccct"), in main() 29 regex!("[cgt]gggtaaa|tttaccc[acg]"), in main() 30 regex!("a[act]ggtaaa|tttacc[agt]t"), in main() 31 regex!("ag[act]gtaaa|tttac[agt]ct"), in main() 32 regex!("agg[act]taaa|ttta[agt]cct"), in main() 33 regex!("aggg[acg]aaa|ttt[cgt]ccct"), in main() 34 regex!("agggt[cgt]aa|tt[acg]accct"), in main() [all …]
|
| D | shootout-regex-dna-bytes.rs | 12 macro_rules! regex { macro 14 ::regex::bytes::Regex::new($re).unwrap() 23 seq = regex!(">[^\n]*\n|\n").replace_all(&seq, &b""[..]).into_owned(); in main() 28 regex!("agggtaaa|tttaccct"), in main() 29 regex!("[cgt]gggtaaa|tttaccc[acg]"), in main() 30 regex!("a[act]ggtaaa|tttacc[agt]t"), in main() 31 regex!("ag[act]gtaaa|tttac[agt]ct"), in main() 32 regex!("agg[act]taaa|ttta[agt]cct"), in main() 33 regex!("aggg[acg]aaa|ttt[cgt]ccct"), in main() 34 regex!("agggt[cgt]aa|tt[acg]accct"), in main() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/re/re.regex/re.regex.construct/ |
| D | bad_backref.pass.cpp | 10 // <regex> 17 #include <regex> 21 static bool error_badbackref_thrown(const char *pat, std::regex::flag_type f) in error_badbackref_thrown() 25 std::regex re(pat, f); in error_badbackref_thrown() 36 assert(error_badbackref_thrown("\\1abd", std::regex::basic)); in main() 37 assert(error_badbackref_thrown("\\1abd", std::regex::extended)); in main() 38 assert(error_badbackref_thrown("\\1abd", std::regex::awk) == false); in main() 39 assert(error_badbackref_thrown("\\1abd", std::regex::grep)); in main() 40 assert(error_badbackref_thrown("\\1abd", std::regex::egrep)); in main() 58 std::regex re(pat1, pat1 + 7); // extra chars after the end. in main() [all …]
|
| /external/truth/extensions/re2j/src/main/java/com/google/common/truth/extensions/re2j/ |
| D | Re2jSubjects.java | 29 * <p>Truth natively provides subjects for dealing with {@code java.util.regex} based regular 75 /** Fails if the string does not match the given regex. */ 76 public void matches(String regex) { in matches() argument 77 if (!Pattern.matches(regex, checkNotNull(actual))) { in matches() 78 failWithActual("expected to match ", regex); in matches() 82 /** Fails if the string does not match the given regex. */ 84 public void matches(Pattern regex) { in matches() argument 85 if (!regex.matcher(checkNotNull(actual)).matches()) { in matches() 86 failWithActual("expected to match ", regex); in matches() 90 /** Fails if the string matches the given regex. */ [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/test/regress/ |
| D | test_sets.cpp | 22 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "a", match_default, make_array(0, 1, -2, -2)); in test_sets() 23 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "b", match_default, make_array(0, 1, -2, -2)); in test_sets() 24 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "c", match_default, make_array(0, 1, -2, -2)); in test_sets() 25 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "d", match_default, make_array(-2, -2)); in test_sets() 26 … TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "a", match_default, make_array(0, 1, -2, -2)); in test_sets() 27 TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "b", match_default, make_array(-2, -2)); in test_sets() 28 TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "d", match_default, make_array(-2, -2)); in test_sets() 29 … TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "e", match_default, make_array(0, 1, -2, -2)); in test_sets() 30 …TEST_REGEX_SEARCH("a[b]c", boost::regex::extended, "abc", match_default, make_array(0, 3, -2, -2)); in test_sets() 31 …TEST_REGEX_SEARCH("a[ab]c", boost::regex::extended, "abc", match_default, make_array(0, 3, -2, -2)… in test_sets() [all …]
|
| D | test_anchors.cpp | 22 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "ab", match_default, make_array(0, 2, -2, -2)); in test_anchors() 23 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xxabxx", match_default, make_array(-2, -2)); in test_anchors() 24 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xx\nabzz", match_default, make_array(3, 5, -2, -… in test_anchors() 25 TEST_REGEX_SEARCH("ab$", boost::regex::extended, "ab", match_default, make_array(0, 2, -2, -2)); in test_anchors() 26 TEST_REGEX_SEARCH("ab$", boost::regex::extended, "abxx", match_default, make_array(-2, -2)); in test_anchors() 27 …TEST_REGEX_SEARCH("ab$", boost::regex::extended, "ab\nzz", match_default, make_array(0, 2, -2, -2)… in test_anchors() 28 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "\n\n a", match_default, make_array(-2, -2)); in test_anchors() 37 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "ab", match_default | match_not_bol | match_not_e… in test_anchors() 38 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xxabxx", match_default | match_not_bol | match_n… in test_anchors() 39 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xx\nabzz", match_default | match_not_bol | match… in test_anchors() [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/ |
| D | Regex.cpp | 1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===// 13 #include "llvm/Support/Regex.h" 22 // xlocale.h, this will cause trouble, because of missing regex-related types. 27 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex 29 Regex::Regex(StringRef regex, RegexFlags Flags) { in Regex() argument 32 preg->re_endp = regex.end(); in Regex() 39 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex() 42 Regex::Regex(StringRef regex, unsigned Flags) in Regex() argument 43 : Regex(regex, static_cast<RegexFlags>(Flags)) {} in Regex() 45 Regex::Regex(Regex &®ex) { in Regex() argument [all …]
|
| /external/rust/crates/bindgen-cli/ |
| D | options.rs | 67 let (regex, abi_str) = abi_override in parse_abi_override() 75 Ok((abi, regex.to_owned())) in parse_abi_override() 81 let (regex, derives) = custom_derive in parse_custom_derive() 87 Ok((derives, regex.to_owned())) in parse_custom_derive() 105 /// Mark any enum whose name matches REGEX as a set of bitfield flags. 106 #[arg(long, value_name = "REGEX")] 108 /// Mark any enum whose name matches REGEX as a newtype. 109 #[arg(long, value_name = "REGEX")] 111 /// Mark any enum whose name matches REGEX as a global newtype. 112 #[arg(long, value_name = "REGEX")] [all …]
|
| /external/llvm/include/llvm/Support/ |
| D | Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 28 class Regex { 46 /// Compiles the given regular expression \p Regex. 47 Regex(StringRef Regex, unsigned Flags = NoFlags); 48 Regex(const Regex &) = delete; 49 Regex &operator=(Regex regex) { 50 std::swap(preg, regex.preg); 51 std::swap(error, regex.error); 54 Regex(Regex &®ex) { in Regex() argument 55 preg = regex.preg; in Regex() [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Support/ |
| D | Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 28 class Regex { 48 Regex(); 49 /// Compiles the given regular expression \p Regex. 51 /// \param Regex - referenced string is no longer needed after this 53 Regex(StringRef Regex, RegexFlags Flags = NoFlags); 54 Regex(StringRef Regex, unsigned Flags); 55 Regex(const Regex &) = delete; 56 Regex &operator=(Regex regex) { 57 std::swap(preg, regex.preg); [all …]
|