Home
last modified time | relevance | path

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

12345678910>>...18

/third_party/rust/rust/src/librustdoc/passes/lint/
Dbare_urls.rs1 //! Detects links that are not linkified, e.g., in Markdown such as `Go to https://example.com/.`
2 //! Suggests wrapping the link with angle brackets: `Go to <https://example.com/>.` to linkify it.
8 use core::ops::Range;
10 use regex::Regex;
18 // If non-local, no need to check anything. in visit_item()
24 |cx: &DocContext<'_>, msg: &'static str, url: &str, range: Range<usize>| { in visit_item()
25 let sp = source_span_for_markdown_range(cx.tcx, &dox, &range, &item.attrs) in visit_item()
40 while let Some((event, range)) = p.next() { in visit_item()
42 Event::Text(s) => find_raw_urls(cx, &s, range, &report_diag), in visit_item()
43 // We don't want to check the text inside code blocks or links. in visit_item()
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/regex/
DRegexGenerator.java8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
17 package com.google.i18n.phonenumbers.metadata.regex;
29 import com.google.i18n.phonenumbers.metadata.regex.Edge.SimpleEdge;
36 // NOTE: Tail optimization should remain disabled since it seems to undo some of the benefits of
51 * Returns the default regex generator for XML data. This should be used by any tool wishing to
53 * as to which optimizations are enabled for this regular expression generator.
65 Preconditions.checkState(!this.useDotMatch, "Dot-matching already enabled"); in withDotMatch()
70 * Returns a new regular expression generator which applies a length-based factorization of the
71 * DFA graph in an attempt to reduce the number of problematic terminating states. This results
[all …]
/third_party/rust/rust/src/tools/rustfmt/src/format-diff/
Dmain.rs1 // Inspired by Clang's clang-format-diff:
3 // https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/clang-format-diff.py
20 use regex::Regex;
24 /// The default pattern of files to format.
26 /// We only want to format rust files by default.
34 IncorrectFilter(#[from] regex::Error),
41 name = "rustfmt-format-diff",
49 long = "skip-prefix",
55 /// Custom pattern selecting file paths to reformat
72 .expect("cannot write to stdout"); in main()
[all …]
/third_party/rust/rust/src/tools/clippy/tests/ui/
Dregex.stderr1 error: trivial regex
2 --> $DIR/regex.rs:18:45
4 LL | let pipe_in_wrong_position = Regex::new("|");
7 = help: the regex is unlikely to be useful as it is
8 = note: `-D clippy::trivial-regex` implied by `-D warnings`
10 error: trivial regex
11 --> $DIR/regex.rs:19:60
16 = help: the regex is unlikely to be useful as it is
18 error: regex syntax error: invalid character class range, the start must be <= the end
19 --> $DIR/regex.rs:20:42
[all …]
/third_party/rust/crates/regex/src/
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 …]
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 …]
/third_party/rust/crates/regex/regex-debug/src/
Dmain.rs7 use regex::internal::{Compiler, LiteralSearcher};
13 regex-debug [options] ast <pattern>
14 regex-debug [options] hir <pattern>
15 regex-debug [options] prefixes <patterns> ...
16 regex-debug [options] suffixes <patterns> ...
17 regex-debug [options] anchors <pattern>
18 regex-debug [options] captures <pattern>
19 regex-debug [options] compile <patterns> ...
20 regex-debug [options] utf8-ranges <class>
21 regex-debug [options] utf8-ranges-rev <class>
[all …]
/third_party/toybox/tests/
Dsed.test7 SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
8 testing '-n' 'sed -n ""' "" "" "one\ntwo\nthree"
9 testing '-n p' 'sed -n p' "one\ntwo\nthree" "" "one\ntwo\nthree"
10 testing 'explicit pattern' 'sed -e p -n' "one\ntwo\nthree" "" \
14 testing '' 'sed -n 1p' "one\n" "" "one\ntwo\nthree"
16 testing '' 'sed -n 2p' "two\n" "" "one\ntwo\nthree"
17 testing '-n $p' 'sed -n \$p' "three" "" "one\ntwo\nthree"
18 testing 'as cat #2' "sed -n '1,\$p'" "one\ntwo\nthree" "" "one\ntwo\nthree"
20 testing '-n $,$p' 'sed -n \$,\$p' 'three' '' 'one\ntwo\nthree'
21 testing '' 'sed -n 1,2p' "one\ntwo\n" "" "one\ntwo\nthree"
[all …]
/third_party/skia/third_party/externals/tint/tools/src/match/
Dmatch.go7 // https://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
31 // pattern uses forward-slashes for directory separators '/', and may use the
33 // ? - matches any single non-separator character
34 // * - matches any sequence of non-separator characters
35 // ** - matches any sequence of characters including separators
37 // Transform pattern into a regex by replacing the uses of `?`, `*`, `**`
38 // with corresponding regex patterns.
39 // As the pattern may contain other regex sequences, the string has to be
42 // b) Escape the expression so that other sequences don't confuse the regex
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
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 …]
/third_party/python/Lib/distutils/
Dfilelist.py16 applying various patterns to what we find there.
20 directory from which files will be taken -- only used if
21 'allfiles' not supplied to constructor
30 # ignore argument to FileList, but keep them for backwards
42 """Print 'msg' to stdout if the global DEBUG (taken from the
49 # -- List-like methods ---------------------------------------------
65 # -- Other miscellaneous utility methods ---------------------------
69 for i in range(len(self.files) - 1, 0, -1):
70 if self.files[i] == self.files[i - 1]:
74 # -- "File template" methods ---------------------------------------
[all …]
/third_party/flatbuffers/tests/fuzzer/
Dflatbuffers_scalar_fuzzer.cc8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
24 #include <regex>
38 // Find all 'subj' sub-strings and replace first character of sub-string.
39 // BreakSequence("testest","tes", 'X') -> "XesXest".
40 // BreakSequence("xxx","xx", 'Y') -> "YYx".
50 // StripString("xy{xy}y", "xy") -> "{xy}"
62 return s.substr(first, last - first + 1); in StripString()
90 // remove quotes for regex test in Match()
91 test = test.substr(1, test.size() - 2); in Match()
[all …]
/third_party/cups/man/
Dippfind.14 .\" Copyright © 2020-2024 by OpenPrinting.
5 .\" Copyright © 2013-2019 by Apple Inc.
10 .TH ippfind 1 "ippsample" "2021-02-28" "OpenPrinting"
12 ippfind \- find internet printing protocol printers
29 .B \-\-help
32 .B \-\-version
35 Its primary purpose is to find IPP printers and show their URIs, show their current status, or run …
60-\-exec\fR, \fI\-l\fR, \fI\-\-ls\fR, \fI\-p\fR, \fI\-\-print\fR, \fI\-\-print\-name\fR, \fI\-q\fR,…
63 \fB\-d \fIregex\fR
65 \fB\-\-domain \fIregex\fR
[all …]
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/
DEdgeWriterTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
17 package com.google.i18n.phonenumbers.metadata.regex;
23 import com.google.i18n.phonenumbers.metadata.regex.Edge.SimpleEdge;
34 // Note that this code is tested very thoroughly by any "round-tripping" of regular expressions
35 // in the metadata (i.e. generating regular expressions from DFAs and then re-parsing then to
38 // tests are thus limited to simpler cases and highlighting interesting behaviour.
45 assertThat(regex(e("0"))).isEqualTo("0"); in testSimple()
46 assertThat(regex(e("[0-7]"))).isEqualTo("[0-7]"); in testSimple()
47 assertThat(regex(e("[0-9]"))).isEqualTo("\\d"); in testSimple()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DFileCheck.h1 //==-- llvm/Support/FileCheck.h ---------------------------*- C++ -*-==//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 /// \file This file has some utilities to use FileCheck as an API
11 //===----------------------------------------------------------------------===//
18 #include "llvm/Support/Regex.h"
40 //===----------------------------------------------------------------------===//
42 //===----------------------------------------------------------------------===//
57 /// trailing CHECK-NOTs.
60 /// Marks when parsing found a -NOT check combined with another CHECK suffix.
[all …]
/third_party/libabigail/src/
Dabg-suppression.cc1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2 // -*- Mode: C++ -*-
4 // Copyright (C) 2016-2023 Red Hat, Inc.
15 #include "abg-internal.h"
22 #include "abg-ini.h"
23 #include "abg-comp-filter.h"
24 #include "abg-suppression.h"
25 #include "abg-tools-utils.h"
26 #include "abg-fe-iface.h"
27 #include "abg-comparison.h"
[all …]
/third_party/python/Lib/
D_strptime.py1 """Strptime-related classes and functions.
4 LocaleTime -- Discovers and stores locale-specific time information
5 TimeRE -- Creates regexes for pattern matching a string of text containing
9 _getlang -- Figure out what language is being used for the locale
10 strptime -- Calculates the time struct represented by the passed-in string
27 # Figure out what the current language is set to.
31 """Stores and handles locale-specific information related to time.
34 f_weekday -- full weekday names (7-item list)
35 a_weekday -- abbreviated weekday names (7-item list)
36 f_month -- full month names (13-item list; dummy value in [0], which
[all …]
/third_party/skia/infra/bots/gen_tasks_logic/
Dcompile_cas.go2 // Use of this source code is governed by a BSD-style license that can be
21 // files and dirs which are directly inside it as opposed to indirect
23 // the children. This results in a simpler CasSpec which should need to be
42 // These paths are always added to the inclusion list. Note that they may
46 ".clang-format",
47 ".clang-tidy",
48 "bin/fetch-clang-format",
49 "bin/fetch-gn",
65 // getAllCheckedInPaths returns every path checked in to the repo.
67 cmd := exec.Command("git", "ls-files")
[all …]
/third_party/musl/src/regex/
Dregerror.c2 #include <regex.h>
6 /* Error message strings for error codes listed in `regex.h'. This list
7 needs to be in sync with the codes listed there, naturally. */
9 /* Converted to single string by Rich Felker to remove the need for
24 "Invalid character range\0"
33 for (s=messages; e && *s; e--, s+=strlen(s)+1); in regerror()
/third_party/grpc/test/core/util/
Dmatchers_test.cc7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
27 EXPECT_TRUE(string_matcher->Match("exact")); in TEST()
28 EXPECT_FALSE(string_matcher->Match("Exact")); in TEST()
29 EXPECT_FALSE(string_matcher->Match("exacz")); in TEST()
37 EXPECT_TRUE(string_matcher->Match("Exact")); in TEST()
38 EXPECT_FALSE(string_matcher->Match("Exacz")); in TEST()
46 EXPECT_TRUE(string_matcher->Match("prefix-test")); in TEST()
47 EXPECT_FALSE(string_matcher->Match("xx-prefix-test")); in TEST()
48 EXPECT_FALSE(string_matcher->Match("Prefix-test")); in TEST()
[all …]
/third_party/toybox/toys/posix/
Dsed.c1 /* sed.c - stream editor. Thing that does s/// and other stuff.
11 * What's the right thing to do for -i when write fails? Skip to next?
12 * test '//q' with no previous regex, also repeat previous regex?
14 USE_SED(NEWTOY(sed, "(help)(version)e*f*i:;nErz(null-data)[+Er]", TOYFLAG_BIN|TOYFLAG_LOCALE|TOYFLA…
20 usage: sed [-inrzE] [-e SCRIPT]...|SCRIPT [-f SCRIPT_FILE]... [FILE...]
22 Stream editor. Apply one or more editing SCRIPTs to each line of input
23 (from FILE or stdin) producing output (by default to stdout).
25 -e Add SCRIPT to list
26 -f Add contents of SCRIPT_FILE to list
27 -i Edit each file in place (-iEXT keeps backup file with extension EXT)
[all …]
/third_party/skia/m133/infra/bots/gen_tasks_logic/
Dcompile_cas.go2 // Use of this source code is governed by a BSD-style license that can be
21 // files and dirs which are directly inside it as opposed to indirect
23 // the children. This results in a simpler CasSpec which should need to be
42 // These paths are always added to the inclusion list. Note that they may
48 ".clang-format",
49 ".clang-tidy",
52 "DEPS", // Needed by bin/fetch-ninja
55 "bin/activate-emsdk",
56 "bin/fetch-clang-format",
57 "bin/fetch-gn",
[all …]
/third_party/rust/crates/regex/
DUNICODE.md3 This document describes the regex crate's conformance to Unicode's
14 are ASCII-only definitions.
16 Little to no support is provided for either Level 2 or Level 3. For the most
17 part, this is because the features are either complex/hard to implement, or at
18 the very least, very difficult to implement without sacrificing performance.
21 undertaking. This is at least partially a result of the fact that this regex
30 Hex Notation refers to the ability to specify a Unicode code point in a regular
32 environments that have poor Unicode font rendering or if you need to express a
37 \x{10FFFF} any hex character code corresponding to a Unicode code point
39 \u{7F} any hex character code corresponding to a Unicode code point
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dregexst.h6 // Copyright (C) 2003-2010, International Business Machines Corporation and others.
11 // This class is internal to the regular expression implementation.
12 // For the public Regular Expression API, see the file "unicode/regex.h"
37 static RegexStaticSets *gStaticSets; // Ptr to all lazily initialized constant
44 UnicodeSet fPropSets[URX_LAST_SET] {}; // The sets for common regex items, e.g. \s
45 Regex8BitSet fPropSets8[URX_LAST_SET] {}; // Fast bitmap sets for latin-1 range for above.
51 UText *fEmptyText {}; // An empty string, to be used when a matcher

12345678910>>...18