Home
last modified time | relevance | path

Searched refs:Regex (Results 1 – 25 of 138) sorted by relevance

123456

/third_party/rust/crates/regex/tests/
Dtest_default.rs14 use regex::Regex;
15 Regex::new($re)
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()
74 assert!(regex::Regex::new(r"\0").is_err()); in disallow_octal()
85 use regex::{Regex, RegexBuilder, RegexSet, RegexSetBuilder}; in oibits()
93 assert_send::<Regex>(); in oibits()
94 assert_sync::<Regex>(); in oibits()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DRegex.h28 class Regex {
46 Regex();
48 Regex(StringRef Regex, unsigned Flags = NoFlags);
49 Regex(const Regex &) = delete;
50 Regex &operator=(Regex regex) {
55 Regex(Regex &&regex);
56 ~Regex();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DRegex.h27 class Regex {
45 Regex();
50 Regex(StringRef Regex, unsigned Flags = NoFlags);
51 Regex(const Regex &) = delete;
52 Regex &operator=(Regex regex) {
57 Regex(Regex &&regex);
58 ~Regex();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DRegex.cpp22 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
24 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() function in Regex
37 Regex::Regex(Regex &&regex) { in Regex() function in Regex
44 Regex::~Regex() { in ~Regex()
51 bool Regex::isValid(std::string &Error) { in isValid()
64 unsigned Regex::getNumMatches() const { in getNumMatches()
68 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match()
110 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
189 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE()
196 std::string Regex::escape(StringRef String) { in escape()
/third_party/rust/crates/regex/bench/src/
Dmain.rs91 use ffi::onig::Regex; in count_onig()
92 Regex::new(pat).unwrap().find_iter(haystack).count() in count_onig()
98 use ffi::pcre1::Regex; in count_pcre1()
99 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre1()
105 use ffi::pcre2::Regex; in count_pcre2()
106 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre2()
112 use ffi::re2::Regex; in count_re2()
113 Regex::new(pat).unwrap().find_iter(haystack).count() in count_re2()
119 use regex::Regex; in count_rust()
120 Regex::new(pat).unwrap().find_iter(haystack).count() in count_rust()
[all …]
Dbench.rs13 pub use ffi::pcre1::Regex;
15 pub use ffi::onig::Regex;
17 pub use regex::{Regex, RegexSet};
19 pub use regex::bytes::{Regex, RegexSet};
21 pub use ffi::re2::Regex;
23 pub use ffi::pcre2::Regex;
25 pub use ffi::tcl::Regex;
42 crate::Regex::new(&$re.to_owned()).unwrap()
150 static ref RE: Mutex<Regex> = Mutex::new($re);
188 static ref RE: Mutex<Regex> = Mutex::new(regex!($pattern));
[all …]
Dmisc.rs9 use crate::{Regex, Text};
249 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
255 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
265 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
275 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
285 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
295 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
305 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
315 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
325 Regex::new(r"(bbbb)cccc(bbb)").unwrap(),
[all …]
/third_party/benchmark/src/
Dre.h61 class Regex {
63 Regex() : init_(false) {} in Regex() function
65 ~Regex();
90 inline bool Regex::Init(const std::string& spec, std::string* error) { in Init()
109 inline Regex::~Regex() {} in ~Regex()
111 inline bool Regex::Match(const std::string& str) { in Match()
119 inline bool Regex::Init(const std::string& spec, std::string* error) { in Init()
142 inline Regex::~Regex() { in ~Regex()
148 inline bool Regex::Match(const std::string& str) { in Match()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRegex.cpp26 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
28 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() function in Regex
41 Regex::Regex(Regex &&regex) { in Regex() function in Regex
48 Regex::~Regex() { in ~Regex()
68 bool Regex::isValid(std::string &Error) const { in isValid()
78 unsigned Regex::getNumMatches() const { in getNumMatches()
82 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match()
132 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
208 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE()
215 std::string Regex::escape(StringRef String) { in escape()
/third_party/rust/crates/regex/bench/src/ffi/
Donig.rs3 pub struct Regex(onig::Regex); struct
5 unsafe impl Send for Regex {} implementation
7 impl Regex { implementation
9 onig::Regex::new(pattern).map(Regex) in new()
Dre2.rs8 pub struct Regex { struct
12 unsafe impl Send for Regex {} implementation
14 impl Drop for Regex { implementation
25 impl Regex { impl
26 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() argument
27 unsafe { Ok(Regex { re: re2_regexp_new(pattern.into()) }) } in new()
61 re: &'r Regex,
Dpcre1.rs19 pub struct Regex { struct
24 unsafe impl Send for Regex {} argument
26 impl Drop for Regex { implementation
40 impl Regex { impl
41 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() argument
70 Ok(Regex { code: code, extra: extra }) in new()
107 re: &'r Regex,
Dpcre2.rs9 pub struct Regex { struct
15 unsafe impl Send for Regex {} implementation
17 impl Drop for Regex { implementation
31 impl Regex { implementation
32 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() argument
66 Ok(Regex { code: code, match_data: match_data, ovector: ovector }) in new()
104 re: &'r Regex,
Dtcl.rs61 pub struct Regex { struct
66 unsafe impl Send for Regex {} argument
71 impl Regex { implementation
72 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() argument
84 Ok(Regex { pat: pat, re: re }) in new()
128 re: &'r Regex,
/third_party/mesa3d/src/amd/compiler/
D.clang-format92 - Regex: '<[[:alnum:].]+>'
94 - Regex: '.*\/.*'
96 - Regex: '.*'
139 - Regex: '"aco.*'
141 - Regex: '"(common|llvm|vulkan)\/.*'
143 - Regex: '"(nir|util\/).*'
145 - Regex: '.*\/.*'
147 - Regex: '.*'
/third_party/rust/crates/regex/regex-capi/src/
Drure.rs21 pub struct Regex { struct
22 re: bytes::Regex, argument
47 re: *const Regex,
57 impl Deref for Regex { implementation
58 type Target = bytes::Regex;
59 fn deref(&self) -> &bytes::Regex { in deref() argument
78 fn rure_compile_must(pattern: *const c_char) -> *const Regex {
101 ) -> *const Regex {
134 let re = Regex {
143 *error = Error::new(ErrorKind::Regex(err));
[all …]
/third_party/mesa3d/src/freedreno/vulkan/
D.clang-format17 - Regex: '^"tu_common.h"$'
19 - Regex: '^"(drm/|ir3/|tu_)'
21 - Regex: '^"(c11/|compiler/|main/|nir/|spirv/|util/|vk_|wsi_)'
23 - Regex: '^<(vulkan/)'
25 - Regex: '.*'
/third_party/mesa3d/src/virtio/vulkan/
D.clang-format23 - Regex: '^"vn_common.h"$'
25 - Regex: '^"vn_'
27 - Regex: '^"(venus-protocol/|virtio-gpu/|vtest/)'
29 - Regex: '^"(c11/|util/|drm-uapi/|vk_|wsi_|git_)'
31 - Regex: '.*'
/third_party/rust/crates/once_cell/examples/
Dregex.rs3 use regex::Regex;
7 static RE: once_cell::sync::OnceCell<regex::Regex> = once_cell::sync::OnceCell::new();
8 RE.get_or_init(|| regex::Regex::new($re).unwrap())
17 let re = Regex::new( in slow()
32 let re: &Regex = regex!( in fast()
/third_party/skia/third_party/externals/swiftshader/
D.clang-format63 - Regex: '^"[^/]*"'
65 - Regex: '^".*/.*"'
67 - Regex: '^<.*\..*>'
69 - Regex: '^<[^.]*>'
71 - Regex: '.*'
/third_party/rust/crates/syn/examples/lazy-static/example/src/
Dmain.rs2 use regex::Regex;
5 static ref USERNAME: Regex = {
7 Regex::new("^[a-z0-9_-]{3,16}$").unwrap()
/third_party/rust/crates/regex/
DREADME.md22 [`Regex` type](https://docs.rs/regex/*/regex/struct.Regex.html).
33 use regex::Regex;
36 let re = Regex::new(r"(?x)
55 use regex::Regex;
62 let re = Regex::new(r"(\d{4})-(\d{2})-(\d{2})").unwrap();
99 use regex::Regex;
103 static ref RE: Regex = Regex::new("...").unwrap();
114 The main API of this crate (`regex::Regex`) requires the caller to pass a
118 To match on arbitrary bytes, use the `regex::bytes::Regex` API. The API
121 `regex::bytes::Regex`, while `.` will match any *UTF-8 encoded Unicode scalar
[all …]
/third_party/rust/crates/env_logger/src/filter/
Dregex.rs5 use self::regex::Regex;
9 inner: Regex,
14 match Regex::new(spec) { in new()
/third_party/rust/crates/regex/src/
Dre_unicode.rs136 pub struct Regex(Exec); struct
138 impl fmt::Display for Regex { implementation
145 impl fmt::Debug for Regex { implementation
153 impl From<Exec> for Regex { implementation
154 fn from(exec: Exec) -> Regex { in from() argument
155 Regex(exec) in from()
159 impl FromStr for Regex { implementation
163 fn from_str(s: &str) -> Result<Regex, Error> { in from_str() argument
164 Regex::new(s) in from_str()
169 impl Regex { impl
[all …]
/third_party/skia/
D.clang-format63 - Regex: '^<.*\.h>'
65 - Regex: '^<.*'
67 - Regex: '.*'
154 - Regex: '^<.*\.h>'
156 - Regex: '^<.*'
158 - Regex: '.*'

123456