/third_party/rust/crates/regex/tests/ |
H A D | test_default.rs | 14 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...] |
H A D | test_default_bytes.rs | 3 use regex::bytes::Regex; 4 Regex::new($re)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 28 class Regex { class 46 Regex(); 47 /// Compiles the given regular expression \p Regex. 48 Regex(StringRef Regex, unsigned Flags = NoFlags); 49 Regex(const Regex &) = delete; 50 Regex &operator=(Regex rege [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 27 class Regex { class 45 Regex(); 46 /// Compiles the given regular expression \p Regex. 48 /// \param Regex - referenced string is no longer needed after this 50 Regex(StringRef Regex, unsigned Flags = NoFlags); 51 Regex(const Regex &) = delete; 52 Regex [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
H A D | Regex.cpp | 1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===// 14 #include "llvm/Support/Regex.h" 22 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 &®ex) { in Regex() function in Regex 44 Regex [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | Regex.cpp | 1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===// 13 #include "llvm/Support/Regex.h" 26 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 &®ex) { in Regex() function in Regex 48 Regex [all...] |
H A D | TrigramIndex.cpp | 32 void TrigramIndex::insert(std::string Regex) { in insert() argument 39 for (unsigned Char : Regex) { in insert()
|
/third_party/benchmark/src/ |
H A D | re.h | 61 class Regex { class 63 Regex() : init_(false) {} in Regex() function in benchmark::Regex 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() [all...] |
/third_party/rust/crates/regex/src/ |
H A D | re_bytes.rs | 73 /// Like the `Regex` type in the parent module, matches with this regex return in from() 74 /// byte offsets into the search text. **Unlike** the parent `Regex` type, in from() 78 pub struct Regex(Exec); in from() structure names 80 impl fmt::Display for Regex { 87 impl fmt::Debug for Regex { in fmt() 94 /// A constructor for Regex from an Exec. 98 impl From<Exec> for Regex { 99 fn from(exec: Exec) -> Regex { in from() 100 Regex(exec) in from() 104 impl FromStr for Regex { 114 impl Regex { global() impls 534 impl Regex { global() impls 654 impl Regex { find_at() impls [all...] |
H A D | re_builder.rs | 43 use crate::$regex_mod::Regex; 66 /// Note that calling `as_str` on the resulting `Regex` will produce the 69 pub fn build(&self) -> Result<Regex, Error> { in build() 73 .map(Regex::from) in build()
|
/third_party/rust/crates/regex/bench/src/ffi/ |
H A D | onig.rs | 3 pub struct Regex(onig::Regex); structure names 5 unsafe impl Send for Regex {} 7 impl Regex { impls 9 onig::Regex::new(pattern).map(Regex) in new()
|
H A D | pcre1.rs | 19 pub struct Regex { structure names 24 unsafe impl Send for Regex {} 26 impl Drop for Regex { 40 impl Regex { impls 41 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() 70 Ok(Regex { code: code, extra: extra }) in new() 107 re: &'r Regex,
|
H A D | re2.rs | 5 /// Regex wraps an RE2 regular expression. 8 pub struct Regex { structure names 12 unsafe impl Send for Regex {} 14 impl Drop for Regex { 25 impl Regex { impls 26 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() 27 unsafe { Ok(Regex { re: re2_regexp_new(pattern.into()) }) } in new() 61 re: &'r Regex,
|
H A D | pcre2.rs | 9 pub struct Regex { structure names 15 unsafe impl Send for Regex {} 17 impl Drop for Regex { 31 impl Regex { impls 32 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() 66 Ok(Regex { code: code, match_data: match_data, ovector: ovector }) in new() 104 re: &'r Regex,
|
H A D | tcl.rs | 56 /// Regex wraps a TCL regex. It owns a TCL string object and a pointer to a 59 /// There's no Drop impl for Regex because the memory for the regex will be 61 pub struct Regex { structure names 66 unsafe impl Send for Regex {} 71 impl Regex { impls 72 pub fn new(pattern: &str) -> Result<Regex, Error> { in new() 84 Ok(Regex { pat: pat, re: re }) in new() 128 re: &'r Regex,
|
/third_party/rust/crates/regex/bench/src/ |
H A D | bench.rs | 13 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; 35 // Builds a ::Regex from a borrowed string. 42 crate::Regex::new(&$re.to_owned()).unwrap() 132 // regex should be a ::Regex [all...] |
H A D | misc.rs | 9 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 [all...] |
/third_party/rust/crates/once_cell/examples/ |
H A D | regex.rs | 3 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/rust/crates/syn/examples/lazy-static/example/src/ |
H A D | main.rs | 2 use regex::Regex; 5 static ref USERNAME: Regex = { 7 Regex::new("^[a-z0-9_-]{3,16}$").unwrap()
|
/third_party/rust/crates/env_logger/src/filter/ |
H A D | regex.rs | 5 use self::regex::Regex; 9 inner: Regex, 14 match Regex::new(spec) { in new()
|
/third_party/rust/crates/regex/regex-capi/src/ |
H A D | error.rs | 19 Regex(regex::Error), 31 ErrorKind::Str(_) | ErrorKind::Regex(_) | ErrorKind::Nul(_) => { in is_err() 43 ErrorKind::Regex(ref e) => e.fmt(f), in fmt()
|
H A D | rure.rs | 21 pub struct Regex { structure names 22 re: bytes::Regex, 47 re: *const Regex, 57 impl Deref for Regex { 58 type Target = bytes::Regex; 59 fn deref(&self) -> &bytes::Regex { in deref() 78 fn rure_compile_must(pattern: *const c_char) -> *const Regex { in rure_compile_must() 101 ) -> *const Regex { in rure_compile() 134 let re = Regex { in rure_compile() 143 *error = Error::new(ErrorKind::Regex(er in rure_compile() [all...] |
/third_party/rust/crates/which-rs/src/ |
H A D | lib.rs | 124 /// use regex::Regex; 128 /// let re = Regex::new(r"python\d$").unwrap(); 138 /// use regex::Regex; 140 /// which_re(Regex::new("^cargo-.*").unwrap()).unwrap() 144 pub fn which_re(regex: impl Borrow<Regex>) -> Result<impl Iterator<Item = path::PathBuf>> { in which_re() 172 /// use regex::Regex; 176 /// let re = Regex::new(r"python\d$").unwrap(); 184 regex: impl Borrow<Regex>, in which_re_in() 243 regex: Option<Regex>, 259 type Regex types 262 type Regex = (); global() types [all...] |
/third_party/rust/crates/which-rs/tests/ |
H A D | basic.rs | 4 use regex::Regex; 139 let re = Regex::new(r"bin_\d").unwrap(); in test_which_re_in_with_matches() 158 let re = Regex::new(r"bi[^n]").unwrap(); in test_which_re_in_without_matches() 171 which::which_re(Regex::new(r".").unwrap()) in test_which_re_accepts_owned_and_borrow() 174 which::which_re(&Regex::new(r".").unwrap()) in test_which_re_accepts_owned_and_borrow() 177 which::which_re_in(Regex::new(r".").unwrap(), Some("pth")) in test_which_re_accepts_owned_and_borrow() 180 which::which_re_in(&Regex::new(r".").unwrap(), Some("pth")) in test_which_re_accepts_owned_and_borrow()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | DiagnosticHandler.cpp | 13 #include "llvm/Support/Regex.h" 25 std::shared_ptr<Regex> Pattern; 30 Pattern = std::make_shared<Regex>(Val); in operator =()
|