| /third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/regex/ |
| D | RegexGenerator.java | 8 * 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/crates/regex/src/ |
| D | prog.rs | 12 /// `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 …]
|
| D | re_unicode.rs | 5 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 …]
|
| D | re_bytes.rs | 5 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/ |
| D | main.rs | 7 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/ |
| D | sed.test | 7 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/ |
| D | match.go | 7 // 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/ |
| D | FileCheck.cpp | 1 //===- 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/ |
| D | filelist.py | 16 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/ |
| D | flatbuffers_scalar_fuzzer.cc | 8 * 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/protobuf/third_party/googletest/googletest/scripts/ |
| D | pump.py | 17 # contributors may be used to endorse or promote products derived from 22 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 """pump v0.2.0 - Pretty Useful for Meta Programming. 36 classes, functions, macros, and templates that need to work with 44 Converts foo.cc.pump to foo.cc. 50 | $range ID EXPRESSION..EXPRESSION 78 (re.compile(r'\$range\s+'), '$range'), 79 (re.compile(r'\$[_A-Za-z]\w*'), '$id'), 90 def __init__(self, line=-1, column=-1): [all …]
|
| /third_party/libabigail/src/ |
| D | abg-suppression.cc | 1 // 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/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/ |
| D | EdgeWriterTest.java | 8 * 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/ |
| D | FileCheck.h | 1 //==-- 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/python/Lib/ |
| D | _strptime.py | 1 """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/toybox/toys/posix/ |
| D | sed.c | 1 /* 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/infra/bots/gen_tasks_logic/ |
| D | compile_cas.go | 2 // 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/libsnd/cmake/ |
| D | CMakeAutoGenScript.cmake | 8 if (OCCURRENCE_INDEX EQUAL -1) 15 string(SUBSTRING "${TEXT}" ${CUTOFF_INDEX} -1 TEXT_REMAINDER) 23 …string(REGEX MATCH "autogen definitions ([a-zA-Z\\._-]+);[${WS}]*" TEMPLATE_MATCH "${DEFINITION_CO… 39 …string(REGEX MATCH "([a-zA-Z_][a-zA-Z0-9_]*)[${WS}]*=[${WS}]*{[${WS}]*" GROUPSTART_MATCH "${DEFINI… 51 …string(REGEX MATCH "^([a-zA-Z_][a-zA-Z0-9_]*)[${WS}]*=[${WS}]*(([\"']([${WS}a-zA-Z0-9_%\\\"<>\(\)\… 70 string(REGEX MATCH "^[${WS}]*}[${WS}]*;[${WS}]*" GROUPEND_MATCH "${DEFINITION_CONTENTS}") 81 string(SUBSTRING "${TEXT}" "${START}" -1 TEXT) 82 …string(REGEX MATCH "\\[\\+[${WS}]*([ a-zA-Z0-9=_$%\\(\\)\"\\+\\-]+)[${WS}]*\\+\\]" MATCH_GROUP "${… 99 math(EXPR POS_LENGTH "${POS1}-${POS0}") 111 math(EXPR NB_END "${NB}-1") [all …]
|
| /third_party/rust/crates/regex/ |
| D | UNICODE.md | 3 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/spirv-tools/tools/sva/ |
| D | yarn.lock | 5 "@eslint-community/eslint-utils@^4.2.0": 7 …resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23… 8 …integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9… 10 eslint-visitor-keys "^3.3.0" 12 "@eslint-community/regexpp@^4.4.0": 14 …resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a… 15 …integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6F… 19 …resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f2777… 20 …integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuS… 27 import-fresh "^3.2.1" [all …]
|
| /third_party/musl/src/regex/ |
| D | regerror.c | 2 #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/vulkan-headers/registry/ |
| D | generator.py | 1 #!/usr/bin/python3 -i 3 # Copyright 2013-2024 The Khronos Group Inc. 5 # SPDX-License-Identifier: Apache-2.0 36 s - string to convert""" 57 - Core API features (those defined with a `<feature>` tag) 58 - (sort VKSC after VK - this is Vulkan-specific) 59 - ARB/KHR/OES (Khronos extensions) 60 - other (EXT/vendor extensions)""" 75 """Sort key for regSortFeatures - key is the sortorder attribute.""" 81 """Sort key for regSortFeatures - key is the extension name.""" [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
| D | generator.py | 1 #!/usr/bin/python3 -i 3 # Copyright 2013-2024 The Khronos Group Inc. 5 # SPDX-License-Identifier: Apache-2.0 36 s - string to convert""" 57 - Core API features (those defined with a `<feature>` tag) 58 - (sort VKSC after VK - this is Vulkan-specific) 59 - ARB/KHR/OES (Khronos extensions) 60 - other (EXT/vendor extensions)""" 75 """Sort key for regSortFeatures - key is the sortorder attribute.""" 81 """Sort key for regSortFeatures - key is the extension name.""" [all …]
|
| /third_party/ntfs-3g/ntfsprogs/ |
| D | ntfsundelete.c | 2 * ntfsundelete - Part of the Linux-NTFS project. 4 * Copyright (c) 2002-2005 Richard Russon 5 * Copyright (c) 2004-2005 Holger Ohmacht 8 * Copyright (c) 2013-2018 Jean-Pierre Andre 23 * along with this program (in the main directory of the Linux-NTFS 24 * distribution in the file COPYING); if not, write to the Free Software 25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 73 #include <regex.h> 116 } range; typedef 120 static range *ranges; /* Array containing all Inode-Ranges for undelete */ [all …]
|
| /third_party/python/Lib/test/ |
| D | test_regrtest.py | 31 LOG_PREFIX = r'[0-9]+:[0-9]+:[0-9]+ (?:load avg: [0-9]+\.[0-9]{2} )?' 59 for opt in '-h', '--help': 67 ns = libregrtest._parse_args(['--timeout', '4.2']) 69 self.checkError(['--timeout'], 'expected one argument') 70 self.checkError(['--timeout', 'foo'], 'invalid float value') 73 ns = libregrtest._parse_args(['--wait']) 77 ns = libregrtest._parse_args(['--worker-args', '[[], {}]']) 79 self.checkError(['--worker-args'], 'expected one argument') 82 for opt in '-S', '--start': 89 ns = libregrtest._parse_args(['-v']) [all …]
|