Home
last modified time | relevance | path

Searched +full:to +full:- +full:regex +full:- +full:range (Results 1 – 25 of 1219) sorted by relevance

12345678910>>...49

/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.6/src/util/
H A Dsearch.rs2 Types and routines that support the search APIs of most regex engines.
4 This sub-module isn't exposed directly, but rather, its contents are exported
5 at the crate root due to the universality of most of the types and routines in
9 use core::ops::{Range, RangeBounds};
13 /// The parameters for a regex search including the haystack to search.
15 /// It turns out that regex searches have a few parameters, and in most cases,
17 /// This `Input` type exists to make that common case seamnless while also
25 /// into account for resolving look-around assertions.
26 /// * Indicating whether to search for all patterns in a regex, or to
28 /// * Whether to perform an anchored on unanchored search.
[all …]
/aosp_15_r20/external/perfetto/src/trace_processor/db/column/
H A Dstring_storage.cc8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
42 #include "src/trace_processor/util/regex.h"
52 return lhs != StringPool::Id::Null() && pool_->Get(lhs) > rhs; in operator ()()
59 return lhs != StringPool::Id::Null() && pool_->Get(lhs) >= rhs; in operator ()()
66 return lhs != StringPool::Id::Null() && pool_->Get(lhs) < rhs; in operator ()()
73 return lhs != StringPool::Id::Null() && pool_->Get(lhs) <= rhs; in operator ()()
86 return lhs != StringPool::Id::Null() && matcher.Matches(pool_->Get(lhs)); in operator ()()
93 : pool_(pool), matches_(pool->MaxSmallStringId().raw_id()) { in GlobFullStringPool()
94 PERFETTO_DCHECK(!pool->HasLargeString()); in GlobFullStringPool()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/combine/src/parser/
Dregex.rs1 //! 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(&regex).parse(&b"123 456 "[..]),
22 //! find_many(regex).parse(&b""[..]),
26 //! static REGEX: Lazy<Regex> = Lazy::new(|| Regex::new("[:alpha:]+").unwrap());
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/algorithm/include/boost/algorithm/string/
Dregex.hpp1 // Boost string_algo library regex.hpp header file ---------------------------//
3 // Copyright Pavol Droba 2002-2003.
15 #include <boost/regex.hpp>
17 #include <boost/range/iterator_range_core.hpp>
18 #include <boost/range/begin.hpp>
19 #include <boost/range/end.hpp>
20 #include <boost/range/iterator.hpp>
21 #include <boost/range/as_literal.hpp>
29 Defines regex variants of the algorithms.
35 // find_regex -----------------------------------------------//
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regex/
H A Dstring.rs9 /// A `Regex` can be used to search haystacks, split haystacks into substrings
12 /// an pattern. To force an expression to match the whole string (or a prefix
17 /// offsets**. Every byte offset is guaranteed to be at a Unicode code point
18 /// boundary. That is, all offsets returned by the `Regex` API are guaranteed
19 /// to be ranges that can slice a `&str` without panicking. If you want to
21 /// [`bytes::Regex`](crate::bytes::Regex).
32 /// use regex::Regex;
34 /// let re = Regex::new("[0-9]{3}-[0-9]{3}-[0-9]{4}").unwrap();
35 /// let m = re.find("phone: 111-222-3333").unwrap();
36 /// assert_eq!(7..19, m.range());
[all …]
H A Dbytes.rs9 /// A `Regex` can be used to search haystacks, split haystacks into substrings
12 /// an pattern. To force an expression to match the whole string (or a prefix
15 /// Like the `Regex` type in the parent module, matches with this regex return
16 /// byte offsets into the haystack. **Unlike** the parent `Regex` type, these
17 /// byte offsets may not correspond to UTF-8 sequence boundaries since the
29 /// use regex::bytes::Regex;
31 /// let re = Regex::new("[0-9]{3}-[0-9]{3}-[0-9]{4}").unwrap();
32 /// let m = re.find(b"phone: 111-222-3333").unwrap();
33 /// assert_eq!(7..19, m.range());
38 /// A common way to use regexes is with capture groups. That is, instead of
[all …]
/aosp_15_r20/external/llvm/utils/FileCheck/
H A DFileCheck.cpp1 //===- FileCheck.cpp - Check that File's Contents match what is expected --===//
8 //===----------------------------------------------------------------------===//
10 // FileCheck does a line-by line check of a file that validates whether it
17 //===----------------------------------------------------------------------===//
26 #include "llvm/Support/Regex.h"
39 CheckFilename(cl::Positional, cl::desc("<check-file>"), cl::Required);
42 InputFilename("input-file", cl::desc("File to check (defaults to stdin)"),
43 cl::init("-"), cl::value_desc("filename"));
46 CheckPrefixes("check-prefix",
47 cl::desc("Prefix to use from check file (defaults to 'CHECK')"));
[all …]
/aosp_15_r20/external/google-cloud-java/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/
H A DExcludeByHotword.java8 * https://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
25 * The rule to exclude findings based on a hotword. For record inspection of
26 * tables, column names are considered hotwords. An example of this is to
37 // Use ExcludeByHotword.newBuilder() to construct.
71 private com.google.privacy.dlp.v2.CustomInfoType.Regex hotwordRegex_;
79 * <code>.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;</code>
94 * <code>.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;</code>
99 public com.google.privacy.dlp.v2.CustomInfoType.Regex getHotwordRegex() { in getHotwordRegex()
101 ? com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance() in getHotwordRegex()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/regex/src/
Dre_unicode.rs5 use std::ops::{Index, Range};
21 pub fn escape(text: &str) -> String { in escape()
25 /// Match represents a single match of a regex in a haystack.
27 /// The lifetime parameter `'t` refers to the lifetime of the matched text.
38 pub fn start(&self) -> usize { in start()
44 pub fn end(&self) -> usize { in end()
48 /// Returns the range over the starting and ending byte offsets of the
51 pub fn range(&self) -> Range<usize> { in range() method
57 pub fn as_str(&self) -> &'t str { in as_str()
58 &self.text[self.range()] in as_str()
[all …]
Dre_bytes.rs5 use std::ops::{Index, Range};
17 /// Match represents a single match of a regex in a haystack.
19 /// The lifetime parameter `'t` refers to the lifetime of the matched text.
30 pub fn start(&self) -> usize { in start()
36 pub fn end(&self) -> usize { in end()
40 /// Returns the range over the starting and ending byte offsets of the
43 pub fn range(&self) -> Range<usize> { in range() method
49 pub fn as_bytes(&self) -> &'t [u8] { in as_bytes()
50 &self.text[self.range()] in as_bytes()
55 fn new(haystack: &'t [u8], start: usize, end: usize) -> Match<'t> { in new()
[all …]
Dprog.rs12 /// `InstPtr` represents the index of an instruction in a regex program.
21 /// Pointers to each Match instruction in the sequence.
23 /// This is always length 1 unless this program represents a regex set.
28 /// Pointers to all named capture groups into `captures`.
30 /// A pointer to the start instruction. This can vary depending on how
39 /// When true, this program can only match valid UTF-8.
41 /// When true, this program uses byte range instructions instead of Unicode
42 /// range instructions.
51 /// Whether the regex must match from the start of the input.
53 /// Whether the regex must match at the end of the input.
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DFileCheck.cpp1 //===- FileCheck.cpp - Check that File's Contents match what is expected --===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // FileCheck does a line-by line check of a file that validates whether it
14 //===----------------------------------------------------------------------===//
29 Optional<uint64_t> Value = Variable->getValue(); in eval()
37 Expected<uint64_t> LeftOp = LeftOperand->eval(); in eval()
38 Expected<uint64_t> RightOp = RightOperand->eval(); in eval()
55 Expected<uint64_t> EvaluatedValue = ExpressionASTPointer->eval(); in getResult()
62 // Look up the value and escape it so that we can put it into the regex. in getResult()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/regex/doc/
Dsyntax_extended.qbk2 Copyright 2006-2007 John Maddock.
13 The POSIX-Extended regular expression syntax is supported by the POSIX
16 Boost.Regex by passing the flag `extended` to the regex constructor, for example:
18 // e1 is a case sensitive POSIX-Extended expression:
19 boost::regex e1(my_expression, boost::regex::extended);
20 // e2 a case insensitive POSIX-Extended expression:
21 boost::regex e2(my_expression, boost::regex::extended|boost::regex::icase);
25 In POSIX-Extended regular expressions, all characters match themselves except for
35 * The NULL character when the flag `match_no_dot_null` is passed to the
38 to the matching algorithms.
[all …]
Dsyntax_basic.qbk2 Copyright 2006-2007 John Maddock.
13 The POSIX-Basic regular expression syntax is used by the Unix utility `sed`,
15 basic regular expressions in Boost.Regex by passing the flag `basic` to the
16 regex constructor (see [syntax_option_type]), for example:
18 // e1 is a case sensitive POSIX-Basic expression:
19 boost::regex e1(my_expression, boost::regex::basic);
20 // e2 a case insensitive POSIX-Basic expression:
21 boost::regex e2(my_expression, boost::regex::basic|boost::regex::icase);
25 In POSIX-Basic regular expressions, all characters are match themselves except
35 * The NULL character when the flag `match_no_dot_null` is passed to the
[all …]
/aosp_15_r20/system/keymint/hal/src/
H A Denv.rs7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
18 use regex::Regex;
24 // The patchlevel properties are of form "YYYY-MM-DD".
28 const PATCHLEVEL_REGEX: &str = r"^(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})$";
34 fn extract_u32(value: Option<regex::Match>) -> Result<u32, Error> { in extract_u32()
40 Err(e) => Err(format!("failed to parse integer: {:?}", e)), in extract_u32()
43 None => Err("failed to find match".to_string()), in extract_u32()
48 pub fn get_property(name: &str) -> Result<String, Error> { in get_property()
52 Err(e) => Err(format!("failed to get property {}: {:?}", name, e)), in get_property()
[all …]
/aosp_15_r20/external/grpc-grpc-java/xds/src/main/java/io/grpc/xds/internal/
H A DMatchers.java8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
38 // Name of the header to be matched.
49 // Matches header value an integer value in the range.
51 public abstract Range range(); in range() method in Matchers.HeaderMatcher
73 // Whether the matching semantics is inverted. E.g., present && !inverted -> !present
92 /** The request header value should be within the range. */
93 public static HeaderMatcher forRange(String name, Range range, boolean inverted) { in forRange() argument
95 checkNotNull(range, "range"); in forRange()
96 return HeaderMatcher.create(name, null, null, range, null, null, null, null, null, inverted); in forRange()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/FileCheck/
H A DFileCheck.cpp1 //===- FileCheck.cpp - Check that File's Contents match what is expected --===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // FileCheck does a line-by line check of a file that validates whether it
14 //===----------------------------------------------------------------------===//
59 return CreatePrecisionRegex("([1-9][0-9]*)?[0-9]"); in getWildcardRegex()
60 return std::string("[0-9]+"); in getWildcardRegex()
63 return CreatePrecisionRegex("-?([1-9][0-9]*)?[0-9]"); in getWildcardRegex()
64 return std::string("-?[0-9]+"); in getWildcardRegex()
67 return CreatePrecisionRegex("([1-9A-F][0-9A-F]*)?[0-9A-F]"); in getWildcardRegex()
[all …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/include/c++/4.8.3/tr1/
Dregex1 // class template regex -*- C++ -*-
3 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
26 * @file tr1/regex
57 * @brief ISO C++ 0x entities sub namespace for regex.
83 * @brief This is a bitmask type indicating how to interpret the regex.
85 * The @c syntax_option_type is implementation defined but it is valid to
86 * perform bitwise operations on these values and expect the right thing to
97 * sequence shall be performed without regard to case.
103 * container sequence, no sub-expression matches are to be stored in the
109 * Specifies that the regular expression engine should pay more attention to
[all …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/tr1/
Dregex1 // class template regex -*- C++ -*-
3 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
26 * @file tr1/regex
57 * @brief ISO C++ 0x entities sub namespace for regex.
83 * @brief This is a bitmask type indicating how to interpret the regex.
85 * The @c syntax_option_type is implementation defined but it is valid to
86 * perform bitwise operations on these values and expect the right thing to
97 * sequence shall be performed without regard to case.
103 * container sequence, no sub-expression matches are to be stored in the
109 * Specifies that the regular expression engine should pay more attention to
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/impl/
Dread_until.hpp5 // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
45 // points to the beginning of the match. Returns (iterator,false) if a
47 // the iterator points to the beginning of the partial match. Returns
112 // Determine the range of the data to be searched. in read_until()
126 return iter - begin + 1; in read_until()
131 search_position = end - begin; in read_until()
143 std::max<std::size_t>(512, b.capacity() - b.size()), in read_until()
144 std::min<std::size_t>(65536, b.max_size() - b.size())); in read_until()
186 // Determine the range of the data to be searched. in read_until()
203 return result.first - begin + delim.length(); in read_until()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/aho-corasick-1.1.3/src/util/
H A Dsearch.rs1 use core::ops::{Range, RangeBounds};
5 /// The configuration and the haystack to use for an Aho-Corasick search.
7 /// When executing a search, there are a few parameters one might want to
10 /// * The haystack to search, provided to the [`Input::new`] constructor. This
12 /// * The span _within_ the haystack to limit a search to. (The default
14 /// [`Input::range`].
15 /// * Whether to run an unanchored (matches can occur anywhere after the
19 /// * Whether to quit the search as soon as a match has been found, regardless
31 /// [`Input::span`] or [`Input::range`]. The bounds set must be valid, or
34 /// * The bounds represent a valid range into the input's haystack.
[all …]
/aosp_15_r20/libcore/ojluni/src/test/java/lang/String/
H A DSplit.java16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
33 import java.util.regex.*;
38 // Android-changed: migrate to testng
52 for (int limit=-2; limit<3; limit++) { in testSplit_byDigit()
90 for (int limit=-2; limit<3; limit++) {
100 // split() now returns 0-length for empty source "" see #6559590
126 * To make it faster it was sharded into five shards:
128 * 1) First shard tests {@code doEscape = false} and {@code cp = [0, 0x11000)}, i.e. full range.
129 * It was accounted for ~10% of all time (~5s), so the whole range goes in single shard.
[all …]
/aosp_15_r20/packages/modules/StatsD/statsd/benchmark/
Dstring_transform_benchmark.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
18 #include <regex>
23 #include "utils/Regex.h"
25 using android::os::statsd::Regex;
33 str.erase(0, min(str.find_first_not_of(charToRemove), str.size() - 1)); in removeLeadingCharacters()
37 int i = str.length() - 1; in removeTrailingNumbers()
40 i--; in removeTrailingNumbers()
45 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingCharacters()
46 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingCharacters()
[all …]
/aosp_15_r20/external/python/google-api-python-client/docs/dyn/
Ddatastore_v1.projects.html8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
16 font-size: 13px;
21 font-size: 26px;
22 margin-bottom: 1em;
26 font-size: 24px;
27 margin-bottom: 1em;
[all …]
/aosp_15_r20/frameworks/av/media/libmedia/
H A DCodecCapabilitiesUtils.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
20 #include <android-base/properties.h>
62 std::regex regex("([0-9]+)([*x])([0-9]+)"); in ParseSize() local
64 if (std::regex_match(str, match, regex)) { in ParseSize()
75 size_t ix = str.find_first_of('-'); in ParseSizeRange()
93 Range<int32_t> VideoSize::GetAllowedDimensionRange() { in GetAllowedDimensionRange()
95 return Range<int32_t>(1, 32768); in GetAllowedDimensionRange()
98 return Range<int32_t>(1, value); in GetAllowedDimensionRange()
109 } else if (str.compare("-Infinity") == 0) { in Parse()
[all …]

12345678910>>...49