Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 2869) sorted by relevance

12345678910>>...115

/third_party/python/Modules/
Dsre_lib.h202 LOCAL(Py_ssize_t) SRE(match)(SRE_STATE* state, const SRE_CODE* pattern, int toplevel);
205 SRE(count)(SRE_STATE* state, const SRE_CODE* pattern, Py_ssize_t maxcount) in SRE()
217 switch (pattern[0]) { in SRE()
221 TRACE(("|%p|%p|COUNT IN\n", pattern, ptr)); in SRE()
222 while (ptr < end && SRE(charset)(state, pattern + 2, *ptr)) in SRE()
228 TRACE(("|%p|%p|COUNT ANY\n", pattern, ptr)); in SRE()
236 TRACE(("|%p|%p|COUNT ANY_ALL\n", pattern, ptr)); in SRE()
242 chr = pattern[1]; in SRE()
243 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE()
256 chr = pattern[1]; in SRE()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/
DFromJsonTest.java24 .pattern("{hello}")
28 .pattern("{hello {(world)}}")
32 .pattern("{hello {()}}")
36 .pattern("{hello {$place}}")
41 .pattern("{hello {$place}}")
46 .pattern("{{$one} and {$two}}")
51 .pattern("{{$one} et {$two}}")
57 .pattern("{hello {(4.2) :number}}")
62 .pattern("{hello {(4.2) :number}}")
66 .pattern("{hello {(foo) :number}}")
[all …]
DMf2FeaturesTest.java37 .pattern("{}") in testEmptyMessage()
46 .pattern("{Hello World!}") in testPlainText()
55 .pattern("{Hello, {$userName}!}") in testPlaceholders()
68 .pattern(message) in testArgumentMissing()
73 .pattern(message) in testArgumentMissing()
78 .pattern(message) in testArgumentMissing()
83 .pattern(message) in testArgumentMissing()
97 .pattern(message) in testDefaultLocale()
102 .pattern(message) in testDefaultLocale()
111 .pattern(message) in testDefaultLocale()
[all …]
/third_party/gn/src/gn/
Dsubstitution_pattern_unittest.cc12 SubstitutionPattern pattern; in TEST() local
14 EXPECT_TRUE(pattern.Parse("This is a literal", nullptr, &err)); in TEST()
16 ASSERT_EQ(1u, pattern.ranges().size()); in TEST()
17 EXPECT_EQ(&SubstitutionLiteral, pattern.ranges()[0].type); in TEST()
18 EXPECT_EQ("This is a literal", pattern.ranges()[0].literal); in TEST()
22 SubstitutionPattern pattern; in TEST() local
24 EXPECT_TRUE(pattern.Parse( in TEST()
27 ASSERT_EQ(5u, pattern.ranges().size()); in TEST()
29 EXPECT_EQ(&SubstitutionLiteral, pattern.ranges()[0].type); in TEST()
30 EXPECT_EQ("AA", pattern.ranges()[0].literal); in TEST()
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/node_modules/minimatch/
Dminimatch.js51 function filter (pattern, options) { argument
54 return minimatch(p, pattern, options)
77 var m = function minimatch (p, pattern, options) { argument
78 return orig(p, pattern, ext(def, options))
81 m.Minimatch = function Minimatch (pattern, options) { argument
82 return new orig.Minimatch(pattern, ext(def, options))
88 m.filter = function filter (pattern, options) { argument
89 return orig.filter(pattern, ext(def, options))
96 m.makeRe = function makeRe (pattern, options) { argument
97 return orig.makeRe(pattern, ext(def, options))
[all …]
/third_party/node/deps/npm/node_modules/rimraf/node_modules/minimatch/
Dminimatch.js51 function filter (pattern, options) { argument
54 return minimatch(p, pattern, options)
77 var m = function minimatch (p, pattern, options) { argument
78 return orig(p, pattern, ext(def, options))
81 m.Minimatch = function Minimatch (pattern, options) { argument
82 return new orig.Minimatch(pattern, ext(def, options))
88 m.filter = function filter (pattern, options) { argument
89 return orig.filter(pattern, ext(def, options))
96 m.makeRe = function makeRe (pattern, options) { argument
97 return orig.makeRe(pattern, ext(def, options))
[all …]
/third_party/python/Lib/
Dre.py187 def match(pattern, string, flags=0): argument
190 return _compile(pattern, flags).match(string)
192 def fullmatch(pattern, string, flags=0): argument
195 return _compile(pattern, flags).fullmatch(string)
197 def search(pattern, string, flags=0): argument
200 return _compile(pattern, flags).search(string)
202 def sub(pattern, repl, string, count=0, flags=0): argument
209 return _compile(pattern, flags).sub(repl, string, count)
211 def subn(pattern, repl, string, count=0, flags=0): argument
220 return _compile(pattern, flags).subn(repl, string, count)
[all …]
/third_party/node/deps/npm/node_modules/glob/dist/mjs/
Dprocessor.js14 hasWalked(target, pattern) { argument
15 return this.store.get(target.fullpath())?.has(pattern.globString());
17 storeWalked(target, pattern) { argument
21 cached.add(pattern.globString());
23 this.store.set(fullpath, new Set([pattern.globString()]));
53 add(target, pattern) { argument
59 if (!subs.find(p => p.globString() === pattern.globString())) {
60 subs.push(pattern);
64 this.store.set(target, [pattern]);
109 for (let [t, pattern] of processingSet) {
[all …]
Dindex.d.ts10 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
11 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
12 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
13 export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass<…
18 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesFal…
19 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTru…
20 export declare function globStream(pattern: string | string[], options?: GlobOptionsWithFileTypesUn…
21 export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass<Path…
25 export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse…
26 export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue)…
[all …]
/third_party/node/deps/npm/node_modules/glob/dist/cjs/src/
Dprocessor.js17 hasWalked(target, pattern) { argument
18 return this.store.get(target.fullpath())?.has(pattern.globString());
20 storeWalked(target, pattern) { argument
24 cached.add(pattern.globString());
26 this.store.set(fullpath, new Set([pattern.globString()]));
58 add(target, pattern) { argument
64 if (!subs.find(p => p.globString() === pattern.globString())) {
65 subs.push(pattern);
69 this.store.set(target, [pattern]);
115 for (let [t, pattern] of processingSet) {
[all …]
Dindex.d.ts10 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
11 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
12 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileType…
13 export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass<…
18 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesFal…
19 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTru…
20 export declare function globStream(pattern: string | string[], options?: GlobOptionsWithFileTypesUn…
21 export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass<Path…
25 export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse…
26 export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue)…
[all …]
/third_party/pcre2/pcre2/src/
Dpcre2_convert.c124 convert_posix(uint32_t pattype, PCRE2_SPTR pattern, PCRE2_SIZE plength, in convert_posix() argument
129 PCRE2_SPTR posix = pattern; in convert_posix()
481 PCRE2_SPTR pattern = start; in convert_glob_parse_class() local
488 if (pattern >= pattern_end) return 0; in convert_glob_parse_class()
490 c = *pattern++; in convert_glob_parse_class()
495 if (c != CHAR_COLON || pattern >= pattern_end || in convert_glob_parse_class()
496 *pattern != CHAR_RIGHT_SQUARE_BRACKET) in convert_glob_parse_class()
506 pattern = start; in convert_glob_parse_class()
508 while (*pattern == (PCRE2_UCHAR) *class_ptr) in convert_glob_parse_class()
510 if (*pattern == CHAR_COLON) in convert_glob_parse_class()
[all …]
/third_party/curl/src/
Dtool_urlglob.c42 struct URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed()
90 char *pattern = *patternp; in glob_set() local
91 char *opattern = pattern; in glob_set()
94 pat = &glob->pattern[glob->size]; in glob_set()
103 switch(*pattern) { in glob_set()
112 if(opattern == pattern) in glob_set()
145 if(*pattern == '}') { in glob_set()
146 pattern++; /* pass the closing brace */ in glob_set()
152 ++pattern; in glob_set()
160 if(pattern[1]) { in glob_set()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430InstrFormats.td47 dag outs, dag ins, string asmstr, list<dag> pattern>
49 let Pattern = pattern;
64 dag outs, dag ins, string asmstr, list<dag> pattern>
65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>;
68 dag outs, dag ins, string asmstr, list<dag> pattern>
69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> {
74 dag outs, dag ins, string asmstr, list<dag> pattern>
75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> {
83 dag outs, dag ins, string asmstr, list<dag> pattern>
86 let Pattern = pattern;
[all …]
/third_party/node/deps/npm/node_modules/minimatch/dist/mjs/
Dindex.js6 export const minimatch = (p, pattern, options = {}) => { argument
7 assertValidPattern(pattern);
9 if (!options.nocomment && pattern.charAt(0) === '#') {
12 return new Minimatch(pattern, options).match(p);
93 export const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options); argument
101 const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); argument
104 constructor(pattern, options = {}) { argument
105 super(pattern, ext(def, options));
117 static fromGlob(pattern, options = {}) {
118 return orig.AST.fromGlob(pattern, ext(def, options));
[all …]
/third_party/node/deps/minimatch/src/dist/mjs/
Dindex.js6 export const minimatch = (p, pattern, options = {}) => { argument
7 assertValidPattern(pattern);
9 if (!options.nocomment && pattern.charAt(0) === '#') {
12 return new Minimatch(pattern, options).match(p);
93 export const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options); argument
101 const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); argument
104 constructor(pattern, options = {}) { argument
105 super(pattern, ext(def, options));
117 static fromGlob(pattern, options = {}) {
118 return orig.AST.fromGlob(pattern, ext(def, options));
[all …]
/third_party/gstreamer/gstplugins_good/gst/multifile/
Dpatternspec.c44 gchar *pattern; member
58 register const gchar *pattern, *string; in pattern_ph_match() local
61 pattern = match_pattern; in pattern_ph_match()
64 ch = *pattern; in pattern_ph_match()
65 pattern++; in pattern_ph_match()
80 ch = *pattern; in pattern_ph_match()
81 pattern++; in pattern_ph_match()
105 if (pattern_ph_match (pattern, match_mode, string, in pattern_ph_match()
128 ch = *pattern; in pattern_ph_match()
129 pattern++; in pattern_ph_match()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreInstrFormats.td12 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern>
20 let Pattern = pattern;
26 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern>
27 : InstXCore<0, outs, ins, asmstr, pattern> {
35 class _F3R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
36 : InstXCore<2, outs, ins, asmstr, pattern> {
44 class _F3RImm<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
45 : _F3R<opc, outs, ins, asmstr, pattern> {
49 class _FL3R<bits<9> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
50 : InstXCore<4, outs, ins, asmstr, pattern> {
[all …]
/third_party/node/deps/minimatch/src/dist/cjs/
Dindex.js12 const minimatch = (p, pattern, options = {}) => { argument
13 (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
15 if (!options.nocomment && pattern.charAt(0) === '#') {
18 return new Minimatch(pattern, options).match(p);
100 const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options); argument
109 const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); argument
112 constructor(pattern, options = {}) { argument
113 super(pattern, ext(def, options));
125 static fromGlob(pattern, options = {}) {
126 return orig.AST.fromGlob(pattern, ext(def, options));
[all …]
/third_party/node/deps/npm/node_modules/minimatch/dist/cjs/
Dindex.js12 const minimatch = (p, pattern, options = {}) => { argument
13 (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
15 if (!options.nocomment && pattern.charAt(0) === '#') {
18 return new Minimatch(pattern, options).match(p);
100 const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options); argument
109 const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); argument
112 constructor(pattern, options = {}) { argument
113 super(pattern, ext(def, options));
125 static fromGlob(pattern, options = {}) {
126 return orig.AST.fromGlob(pattern, ext(def, options));
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DMessagePatternUtil.java55 public static MessageNode buildMessageNode(MessagePattern pattern) { in buildMessageNode() argument
56 int limit = pattern.countParts() - 1; in buildMessageNode()
59 } else if (pattern.getPartType(0) != MessagePattern.Part.Type.MSG_START) { in buildMessageNode()
63 return buildMessageNode(pattern, 0, limit); in buildMessageNode()
432 private static MessageNode buildMessageNode(MessagePattern pattern, int start, int limit) { in buildMessageNode() argument
433 int prevPatternIndex = pattern.getPart(start).getLimit(); in buildMessageNode()
436 MessagePattern.Part part = pattern.getPart(i); in buildMessageNode()
440 new TextNode(pattern.getPatternString().substring(prevPatternIndex, in buildMessageNode()
448 int argLimit = pattern.getLimitPartIndex(i); in buildMessageNode()
449 node.addContentsNode(buildArgNode(pattern, i, argLimit)); in buildMessageNode()
[all …]
DSelectFormat.java158 private String pattern = null; field in SelectFormat
169 public SelectFormat(String pattern) { in SelectFormat() argument
170 applyPattern(pattern); in SelectFormat()
177 pattern = null; in reset()
190 public void applyPattern(String pattern) { in applyPattern() argument
191 this.pattern = pattern; in applyPattern()
196 msgPattern.parseSelectStyle(pattern); in applyPattern()
209 return pattern; in toPattern()
219 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
220 int count=pattern.countParts(); in findSubMessage()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessagePatternUtil.java56 public static MessageNode buildMessageNode(MessagePattern pattern) { in buildMessageNode() argument
57 int limit = pattern.countParts() - 1; in buildMessageNode()
60 } else if (pattern.getPartType(0) != MessagePattern.Part.Type.MSG_START) { in buildMessageNode()
64 return buildMessageNode(pattern, 0, limit); in buildMessageNode()
460 private static MessageNode buildMessageNode(MessagePattern pattern, int start, int limit) { in buildMessageNode() argument
461 int prevPatternIndex = pattern.getPart(start).getLimit(); in buildMessageNode()
464 MessagePattern.Part part = pattern.getPart(i); in buildMessageNode()
468 new TextNode(pattern.getPatternString().substring(prevPatternIndex, in buildMessageNode()
476 int argLimit = pattern.getLimitPartIndex(i); in buildMessageNode()
477 node.addContentsNode(buildArgNode(pattern, i, argLimit)); in buildMessageNode()
[all …]
DSelectFormat.java159 private String pattern = null; field in SelectFormat
171 public SelectFormat(String pattern) { in SelectFormat() argument
172 applyPattern(pattern); in SelectFormat()
179 pattern = null; in reset()
193 public void applyPattern(String pattern) { in applyPattern() argument
194 this.pattern = pattern; in applyPattern()
199 msgPattern.parseSelectStyle(pattern); in applyPattern()
213 return pattern; in toPattern()
223 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
224 int count=pattern.countParts(); in findSubMessage()
[all …]
/third_party/skia/tests/
DRecordPatternTest.cpp22 SaveClipRectRestore pattern; in DEF_TEST() local
25 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
31 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
34 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
37 REPORTER_ASSERT(r, pattern.match(&record, 0)); in DEF_TEST()
38 REPORTER_ASSERT(r, pattern.first<Save>() != nullptr); in DEF_TEST()
39 REPORTER_ASSERT(r, pattern.second<ClipRect>() != nullptr); in DEF_TEST()
40 REPORTER_ASSERT(r, pattern.third<Restore>() != nullptr); in DEF_TEST()
44 SaveClipRectRestore pattern; in DEF_TEST() local
59 REPORTER_ASSERT(r, pattern.match(&record, i) == i + 3); in DEF_TEST()
[all …]

12345678910>>...115