Home
last modified time | relevance | path

Searched +full:regex +full:- +full:not (Results 1 – 25 of 1129) sorted by relevance

12345678910>>...46

/external/truth/core/src/main/java/com/google/common/truth/
DStringSubject.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
24 import java.util.regex.Matcher;
25 import java.util.regex.Pattern;
55 /** Fails if the string does not have the given length. */
61 /** Fails if the string is not equal to the zero-length "empty string." */
70 /** Fails if the string is equal to the zero-length "empty string." */
73 failWithActual(simpleFact("expected a non-empty string")); in isNotEmpty()
75 failWithoutActual(simpleFact("expected not to be empty")); in isNotEmpty()
79 /** Fails if the string does not contain the given sequence. */
[all …]
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 // GOOGLETEST_CM0001 DO NOT DELETE
41 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
60 // implementation of death tests. User code MUST NOT use it.
74 // 2. The parent process clone()s a sub-process and runs the death
75 // test in it; the sub-process exits with code 0 at the end of the
78 // 3. The parent process waits for the sub-process to terminate.
81 // the sub-process.
[all …]
/external/truth/extensions/re2j/src/main/java/com/google/common/truth/extensions/re2j/
DRe2jSubjects.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
29 * <p>Truth natively provides subjects for dealing with {@code java.util.regex} based regular
38 * <p>This subject does not replace Truth's built-in {@link com.google.common.truth.StringSubject}
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
[all …]
/external/perfetto/src/trace_processor/util/
Dregex.h5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
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) {
[all …]
/external/rust/crates/regex-automata/
DREADME.md1 regex-automata
8 …status](https://github.com/BurntSushi/regex-automata/workflows/ci/badge.svg)](https://github.com/B…
9 [![on crates.io](https://meritbadge.herokuapp.com/regex-automata)](https://crates.io/crates/regex-a…
10 ![Minimum Supported Rust Version 1.41](https://img.shields.io/badge/rustc-1.41-green)
12 Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org/).
17 https://docs.rs/regex-automata
26 regex-automata = "0.1"
36 ### Example: basic regex searching
38 This example shows how to compile a regex using the default configuration
42 use regex_automata::Regex;
[all …]
/external/rust/crates/regex-automata/src/
Dlib.rs11 * A [`Regex`](struct.Regex.html) provides a way to search for matches of a
15 compilation options for a regex.
27 # Example: basic regex searching
29 This example shows how to compile a regex using the default configuration
33 use regex_automata::Regex;
35 let re = Regex::new(r"[0-9]{4}-[0-9]{2}-[0-9]{2}").unwrap();
36 let text = b"2018-12-24 2016-10-08";
43 By default, compiling a regex will use dense DFAs internally. This uses more
45 (somewhere around 3-5x), then sparse DFAs might make more sense since they can
48 Using sparse DFAs is as easy as using `Regex::new_sparse` instead of
[all …]
Dregex.rs21 /// The type of the DFA used by a `Regex` corresponds to the `D` type
27 /// By default, a regex's DFA type parameter is set to
28 /// `DenseDFA<Vec<usize>, usize>`. For most in-memory work loads, this is the
33 /// Since a `Regex` is generic over the `DFA` trait, it can be used with any
35 /// enough to build corresponding sparse DFAs, and then build a regex from
39 /// use regex_automata::Regex;
41 /// # fn example() -> Result<(), regex_automata::Error> {
42 /// // First, build a regex that uses dense DFAs.
43 /// let dense_re = Regex::new("foo[0-9]+")?;
49 /// // Third, build a new regex from the constituent sparse DFAs.
[all …]
/external/rust/crates/regex/
DPERFORMANCE.md5 can be found here: https://docs.rs/regex
12 regex implementations, which typically use backtracking which has worst case
28 or places where the current regex engine isn't quite optimal. This guide will
32 ## Thou Shalt Not Compile Regular Expressions In A Loop
34 **Advice**: Use `lazy_static` to amortize the cost of `Regex` compilation.
44 turn it into a proper automaton that decodes a subset of UTF-8 which
48 This means that in order to realize efficient regex matching, one must
50 inside a loop, then make sure your call to `Regex::new` is *outside* that loop.
55 life-before-main, and therefore, one cannot utter this:
57 static MY_REGEX: Regex = Regex::new("...").unwrap();
[all …]
DCHANGELOG.md1 1.7.3 (2023-03-24)
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`.
12 1.7.2 (2023-03-21)
18 * [BUG #967](https://github.com/rust-lang/regex/issues/967):
22 1.7.1 (2023-01-09)
25 regex crate.
29 * [PERF #930](https://github.com/rust-lang/regex/pull/930):
30 Optimize `replacen`. This also applies to `replace`, but not `replace_all`.
[all …]
DREADME.md1 regex chapter
4 syntax is similar to Perl-style regular expressions, but lacks a few features
10 [![Build status](https://github.com/rust-lang/regex/workflows/ci/badge.svg)](https://github.com/rus…
11 [![Crates.io](https://img.shields.io/crates/v/regex.svg)](https://crates.io/crates/regex)
12 [![Rust](https://img.shields.io/badge/rust-1.41.1%2B-blue.svg?maxAge=3600)](https://github.com/rust
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`.
29 Here's a simple example that matches a date in YYYY-MM-DD format and prints the
[all …]
/external/rust/crates/bindgen-cli/
Doptions.rs14 fn rust_target_help() -> String { in rust_target_help()
24 ) -> Result<CodegenConfig, Error> { in parse_codegen_config()
46 fn parse_rustfmt_config_path(path_str: &str) -> Result<PathBuf, Error> { in parse_rustfmt_config_path()
52 "--rustfmt-configuration-file needs to be an absolute path!", in parse_rustfmt_config_path()
59 "--rustfmt-configuration-file contains non-valid UTF8 characters.", in parse_rustfmt_config_path()
66 fn parse_abi_override(abi_override: &str) -> Result<(Abi, String), Error> { in parse_abi_override()
67 let (regex, abi_str) = abi_override in parse_abi_override()
75 Ok((abi, regex.to_owned())) in parse_abi_override()
80 ) -> Result<(Vec<String>, String), Error> { in parse_custom_derive()
81 let (regex, derives) = custom_derive in parse_custom_derive()
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
63 // 2. The parent process clone()s a sub-process and runs the death
64 // test in it; the sub-process exits with code 0 at the end of the
67 // 3. The parent process waits for the sub-process to terminate.
70 // the sub-process.
91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest-port.cc19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 #include "gtest/internal/gtest-port.h"
54 #include "gtest/gtest-spi.h"
55 #include "gtest/gtest-message.h"
56 #include "gtest/internal/gtest-internal.h"
57 #include "gtest/internal/gtest-string.h"
60 // implementation. It must come before gtest-internal-inl.h is
62 // prevent a user from accidentally including gtest-internal-inl.h in
65 #include "src/gtest-internal-inl.h"
[all …]
/external/rust/crates/regex/src/
Dlib.rs3 expressions. Its syntax is similar to Perl-style regular expressions, but lacks
13 documentation for the [`Regex`](struct.Regex.html) type.
17 This crate is [on crates.io](https://crates.io/crates/regex) and can be
18 used by adding `regex` to your dependencies in your project's `Cargo.toml`.
22 regex = "1"
32 use regex::Regex;
33 let re = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
34 assert!(re.is_match("2014-01-01"));
43 [raw strings](https://doc.rust-lang.org/stable/reference/tokens.html#raw-string-literals)
46 not process any escape sequences. For example, `"\\d"` is the same
[all …]
/external/libvpx/third_party/googletest/src/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/libaom/third_party/googletest/src/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/cronet/third_party/boringssl/src/third_party/googletest/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/cronet/third_party/googletest/src/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/googletest/googletest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/mesa3d/src/gtest/include/gtest/
Dgtest-death-test.h19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43 #include "gtest/internal/gtest-death-test-internal.h"
46 // meaning that the death test child process will re-execute the test binary
62 // implementation of death tests. User code MUST NOT use it.
76 // 2. The parent process clone()s a sub-process and runs the death
77 // test in it; the sub-process exits with code 0 at the end of the
80 // 3. The parent process waits for the sub-process to terminate.
83 // the sub-process.
103 // the sub-process wrote to stderr. For compatibility with existing tests, a
[all …]
/external/cronet/net/test/
Dgtest_util.h2 // Use of this source code is governed by a BSD-style license that can be
16 #include "testing/gmock/include/gmock/gmock-matchers.h"
27 std::string(negation ? "not " : "") + net::ErrorToString(expected)) {
36 std::string(negation ? "not " : "") + net::ErrorToString(net::OK)) {
43 // gMock's built-in HasSubstrMatcher does not work,
72 // macros. Do not use this directly.
96 // execute the given statement in the current process, not a forked
101 // DFATAL log message, whereas the other variants assume a regex.
109 #define EXPECT_DFATAL(statement, regex) \ argument
110 EXPECT_DFATAL_WITH(statement, ::testing::ContainsRegex(regex))
[all …]
/external/rust/crates/which/src/
Dlib.rs23 #[cfg(feature = "regex")]
56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which()
64 /// Does not resolve relative paths.
80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global()
85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all()
98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global()
113 /// Only available when feature `regex` is enabled.
117 /// * `regex` - A regular expression to match binaries with
124 /// use regex::Regex;
128 /// let re = Regex::new(r"python\d$").unwrap();
[all …]
/external/rust/crates/regex-syntax/
DREADME.md1 regex-syntax
5 [![Build status](https://github.com/rust-lang/regex/workflows/ci/badge.svg)](https://github.com/rus…
6 [![Crates.io](https://img.shields.io/crates/v/regex-syntax.svg)](https://crates.io/crates/regex-syn…
7 [![Rust](https://img.shields.io/badge/rust-1.28.0%2B-blue.svg?maxAge=3600)](https://github.com/rust
12 https://docs.rs/regex-syntax
48 for doing so is extremely high. In general, most code in this crate is not
55 expressions. Therefore, while there may be bugs in the regex parser itself,
57 in the compiler or the standard library. (Since `regex-syntax` has zero
66 data that is not available, then an error will occur when translating the `Ast`
70 [in the "Crate features" section of the documentation](https://docs.rs/regex-syntax/*/#crate-featur…
[all …]
/external/libcups/vcnet/regex/
DMakefile1 # You probably want to take -DREDEBUG out of CFLAGS, and put something like
2 # -O in, *after* testing (-DREDEBUG strengthens testing by enabling a lot of
4 # Put -Dconst= in for a pre-ANSI compiler.
5 # Do not take -DPOSIX_MISTAKE out.
7 CFLAGS=-I. -DPOSIX_MISTAKE -DREDEBUG $(REGCFLAGS)
9 # If you have a pre-ANSI compiler, put -o into MKHFLAGS. If you want
10 # the Berkeley __P macro, put -b in.
13 # Flags for linking but not compiling, if any.
19 # Internal stuff, should not need changing.
27 LINTFLAGS=-I. -Dstatic= -Dconst= -DREDEBUG
[all …]
/external/libvpx/third_party/googletest/src/src/
Dgtest-port.cc19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 #include "gtest/internal/gtest-port.h"
84 #include "gtest/gtest-message.h"
85 #include "gtest/gtest-spi.h"
86 #include "gtest/internal/gtest-internal.h"
87 #include "gtest/internal/gtest-string.h"
88 #include "src/gtest-internal-inl.h"
100 while (field-- > 0) { in ReadProcFileField()
204 if (info[i].p_tid != -1) nthreads++;
[all …]

12345678910>>...46