Home
last modified time | relevance | path

Searched refs:regexp (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/third_party/node/deps/icu-small/source/i18n/
Duregex.cpp326 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_pattern() local
328 if (validateRE(regexp, false, status) == false) { in uregex_pattern()
332 *patLength = regexp->fPatStringLen; in uregex_pattern()
334 return regexp->fPatString; in uregex_pattern()
346 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_patternUText() local
347 return regexp->fPat->patternText(*status); in uregex_patternUText()
358 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_flags() local
359 if (validateRE(regexp, false, status) == false) { in uregex_flags()
362 int32_t flags = regexp->fPat->flags(); in uregex_flags()
377 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_setText() local
[all …]
/third_party/icu/icu4c/source/i18n/
Duregex.cpp326 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_pattern() local
328 if (validateRE(regexp, false, status) == false) { in uregex_pattern()
332 *patLength = regexp->fPatStringLen; in uregex_pattern()
334 return regexp->fPatString; in uregex_pattern()
346 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_patternUText() local
347 return regexp->fPat->patternText(*status); in uregex_patternUText()
358 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_flags() local
359 if (validateRE(regexp, false, status) == false) { in uregex_flags()
362 int32_t flags = regexp->fPat->flags(); in uregex_flags()
377 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_setText() local
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Duregex.cpp326 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_pattern() local
328 if (validateRE(regexp, FALSE, status) == FALSE) { in uregex_pattern()
332 *patLength = regexp->fPatStringLen; in uregex_pattern()
334 return regexp->fPatString; in uregex_pattern()
346 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_patternUText() local
347 return regexp->fPat->patternText(*status); in uregex_patternUText()
358 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_flags() local
359 if (validateRE(regexp, FALSE, status) == FALSE) { in uregex_flags()
362 int32_t flags = regexp->fPat->flags(); in uregex_flags()
377 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_setText() local
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Duregex.h214 uregex_close(URegularExpression *regexp);
254 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
274 uregex_pattern(const URegularExpression *regexp,
290 uregex_patternUText(const URegularExpression *regexp,
302 uregex_flags(const URegularExpression *regexp,
327 uregex_setText(URegularExpression *regexp,
350 uregex_setUText(URegularExpression *regexp,
375 uregex_getText(URegularExpression *regexp,
396 uregex_getUText(URegularExpression *regexp,
426 uregex_refreshUText(URegularExpression *regexp,
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Duregex.h214 uregex_close(URegularExpression *regexp);
254 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
274 uregex_pattern(const URegularExpression *regexp,
290 uregex_patternUText(const URegularExpression *regexp,
302 uregex_flags(const URegularExpression *regexp,
327 uregex_setText(URegularExpression *regexp,
350 uregex_setUText(URegularExpression *regexp,
375 uregex_getText(URegularExpression *regexp,
396 uregex_getUText(URegularExpression *regexp,
426 uregex_refreshUText(URegularExpression *regexp,
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Duregex.h214 uregex_close(URegularExpression *regexp);
254 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
274 uregex_pattern(const URegularExpression *regexp,
290 uregex_patternUText(const URegularExpression *regexp,
302 uregex_flags(const URegularExpression *regexp,
327 uregex_setText(URegularExpression *regexp,
350 uregex_setUText(URegularExpression *regexp,
375 uregex_getText(URegularExpression *regexp,
396 uregex_getUText(URegularExpression *regexp,
426 uregex_refreshUText(URegularExpression *regexp,
[all …]
/third_party/node/deps/openssl/openssl/util/perl/OpenSSL/
DParseC.pm72 { regexp => qr/#if(def|ndef) OPENSSL_NO_DEPRECATED_(\d+_\d+(?:_\d+)?)$/,
84 { regexp => qr/#ifdef ?(.*)/,
97 { regexp => qr/#ifndef ?(.*)/,
110 { regexp => qr/#if (0|1)/,
127 { regexp => qr/#if ?(.*)/,
187 { regexp => qr/#elif (.*)/,
204 { regexp => qr/#else/,
223 { regexp => qr/#endif ?/,
238 { regexp => qr/#define ([[:alpha:]_]\w*)(<<<\(.*?\)>>>)?( (.*))?/,
248 { regexp => qr/#.*/,
[all …]
/third_party/openssl/util/perl/OpenSSL/
DParseC.pm72 { regexp => qr/#if(def|ndef) OPENSSL_NO_DEPRECATED_(\d+_\d+(?:_\d+)?)$/,
84 { regexp => qr/#ifdef ?(.*)/,
97 { regexp => qr/#ifndef ?(.*)/,
110 { regexp => qr/#if (0|1)/,
127 { regexp => qr/#if ?(.*)/,
187 { regexp => qr/#elif (.*)/,
204 { regexp => qr/#else/,
223 { regexp => qr/#endif ?/,
238 { regexp => qr/#define ([[:alpha:]_]\w*)(<<<\(.*?\)>>>)?( (.*))?/,
248 { regexp => qr/#.*/,
[all …]
/third_party/node/deps/v8/src/builtins/
Dstring-match-search.tq12 return regexp::IsFastRegExpForMatch(maybeRegExp);
15 regexp: FastJSRegExp, string: String): JSAny {
16 return regexp::RegExpMatchFast(regexp, string);
25 return regexp::IsFastRegExpForSearch(maybeRegExp);
28 regexp: FastJSRegExp, string: String): JSAny {
29 return regexp::RegExpSearchFast(regexp, string);
35 regexp: JSAny, functor: F, methodName: constexpr string): JSAny {
42 const heapRegexp = Cast<HeapObject>(regexp) otherwise Slow;
47 // 2. If regexp is neither undefined nor null, then
48 if (regexp != Undefined && regexp != Null) {
[all …]
Dbuiltins-regexp-gen.h32 TNode<String> input, TNode<JSRegExp> regexp, TNode<Number> last_index,
35 TNode<Object> FastLoadLastIndexBeforeSmiCheck(TNode<JSRegExp> regexp);
36 TNode<Smi> FastLoadLastIndex(TNode<JSRegExp> regexp) { in FastLoadLastIndex() argument
37 return CAST(FastLoadLastIndexBeforeSmiCheck(regexp)); in FastLoadLastIndex()
39 TNode<Object> SlowLoadLastIndex(TNode<Context> context, TNode<Object> regexp);
41 void FastStoreLastIndex(TNode<JSRegExp> regexp, TNode<Smi> value);
42 void SlowStoreLastIndex(TNode<Context> context, TNode<Object> regexp,
56 TNode<Context> context, TNode<JSRegExp> regexp, TNode<String> string,
61 TNode<Context> context, TNode<JSRegExp> regexp,
131 TNode<String> FlagsGetter(TNode<Context> context, TNode<Object> regexp,
[all …]
Dregexp.tq5 #include 'src/builtins/builtins-regexp-gen.h'
7 namespace regexp {
59 const regexp = Cast<JSRegExp>(receiver) otherwise ThrowTypeError(
62 return RegExpPrototypeExecSlow(regexp, string);
78 // ES#sec-regexp.prototype.exec
86 regexp: JSRegExp, string: String, regexpLastIndex: Number,
89 dcheck(HasInitialRegExpMap(regexp));
96 // Check whether the regexp is global or sticky, which determines whether we
98 const flags = UnsafeCast<Smi>(regexp.flags);
106 StoreLastIndex(regexp, SmiConstant(0), isFastPath);
[all …]
Dregexp-search.tq5 #include 'src/builtins/builtins-regexp-gen.h'
7 namespace regexp {
11 regexp: JSRegExp, string: String): JSAny {
12 dcheck(IsFastRegExpPermissive(regexp));
15 const previousLastIndex: Smi = FastLoadLastIndex(regexp);
18 FastStoreLastIndex(regexp, 0);
24 UnsafeCast<JSRegExp>(regexp), string)
29 FastStoreLastIndex(regexp, previousLastIndex);
36 FastStoreLastIndex(regexp, previousLastIndex);
51 regexp: JSReceiver, string: String): JSAny {
[all …]
Dregexp-match.tq5 #include 'src/builtins/builtins-regexp-gen.h'
7 namespace regexp {
23 regexp: JSReceiver, string: String, isFastPath: constexpr bool): JSAny {
25 dcheck(Is<FastJSRegExp>(regexp));
28 const isGlobal: bool = FlagGetter(regexp, Flag::kGlobal, isFastPath);
31 return isFastPath ? RegExpPrototypeExecBodyFast(regexp, string) :
32 RegExpExec(regexp, string);
36 const isUnicode: bool = FlagGetter(regexp, Flag::kUnicode, isFastPath);
38 StoreLastIndex(regexp, 0, isFastPath);
44 // Check if the regexp is an ATOM type. If so, then keep the literal string
[all …]
Dregexp-split.tq5 #include 'src/builtins/builtins-regexp-gen.h'
12 namespace regexp {
23 regexp: FastJSRegExp, string: String, limit: JSAny): JSAny {
36 return runtime::RegExpSplit(regexp, string, limit);
42 // don't allocate a new regexp instance as specced), we need to ensure that
43 // the given regexp is non-sticky to avoid invalid results. See
46 if (FastFlagGetter(regexp, Flag::kSticky)) {
47 return runtime::RegExpSplit(regexp, string, sanitizedLimit);
51 return RegExpPrototypeSplitBody(regexp, string, sanitizedLimit);
54 // ES#sec-regexp.prototype-@@split
Dregexp-replace.tq5 #include 'src/builtins/builtins-regexp-gen.h'
7 namespace regexp {
84 regexp: FastJSRegExp, string: String, replaceFn: Callable): String {
85 regexp.lastIndex = 0;
90 regexp, string, GetRegExpLastMatchInfo(),
95 regexp.lastIndex = 0;
109 // the regexp, just the implicit capture that captures the whole match. In
123 regexp: JSRegExp, string: String, replaceString: String): String {
131 const fastRegexp = UnsafeCast<FastJSRegExp>(regexp);
141 RegExpPrototypeExecBodyWithoutResultFast(regexp, string)
[all …]
/third_party/jerryscript/tests/jerry/es2015/
Dregexp-prototype-match.js15 var regexp = /[0-9]+/g; variable
20 var result = regexp[Symbol.match](str);
23 regexp = /[0-5]+/g;
24 result = regexp[Symbol.match](str);
27 regexp = /[0-1]+/g;
28 result = regexp[Symbol.match](str);
31 regexp = /([0-9]+)-([0-9]+)-([0-9]+)/g
32 result = regexp[Symbol.match](str);
36 regexp = /[0-9]+/g;
37 result = regexp[Symbol.match](num);
[all …]
/third_party/node/deps/v8/src/regexp/experimental/
Dexperimental.cc68 Handle<JSRegExp> regexp) { in CompileImpl() argument
71 Handle<String> source(regexp->source(), isolate); in CompileImpl()
78 isolate, &zone, source, JSRegExp::AsRegExpFlags(regexp->flags()), in CompileImpl()
84 USE(RegExp::ThrowRegExpException(isolate, regexp, source, in CompileImpl()
90 parse_result.tree, JSRegExp::AsRegExpFlags(regexp->flags()), &zone); in CompileImpl()
164 JSRegExp regexp, String subject, in ExecRaw() argument
172 StdoutStream{} << "Executing experimental regexp " << regexp.source() in ExecRaw()
177 ByteArray bytecode = ByteArray::cast(regexp.bytecode(kIsLatin1)); in ExecRaw()
180 regexp.capture_count(), output_registers, in ExecRaw()
187 RegExp::CallOrigin call_origin, Isolate* isolate, Address regexp) { in MatchForCallFromJs() argument
[all …]
/third_party/typescript/tests/baselines/reference/
DassignFromStringInterface2.types40 match(regexp: string): RegExpMatchArray;
41 >match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }
42 >regexp : string
44 match(regexp: RegExp): RegExpMatchArray;
45 >match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }
46 >regexp : RegExp
72 search(regexp: string): number;
73 >search : { (regexp: string): number; (regexp: RegExp): number; }
74 >regexp : string
76 search(regexp: RegExp): number;
[all …]
DuseRegexpGroups.symbols18 >result.groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
20 >groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
28 >result.groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
30 >groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
38 >result.groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
40 >groups : Symbol(RegExpExecArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
48 >"foo".match(/(?<bar>foo)/)!.groups : Symbol(RegExpMatchArray.groups, Decl(lib.es2018.regexp.d.ts, …
51 >groups : Symbol(RegExpMatchArray.groups, Decl(lib.es2018.regexp.d.ts, --, --))
/third_party/node/deps/v8/src/runtime/
Druntime-regexp.cc81 bool Compile(Isolate* isolate, Handle<JSRegExp> regexp,
326 bool CompiledReplacement::Compile(Isolate* isolate, Handle<JSRegExp> regexp, in Compile() argument
336 DCHECK(JSRegExp::TypeSupportsCaptures(regexp->type_tag())); in Compile()
337 Object maybe_capture_name_map = regexp->capture_name_map(); in Compile()
625 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithString() argument
630 int capture_count = regexp->capture_count(); in StringReplaceGlobalRegExpWithString()
634 if (!RegExp::EnsureFullyCompiled(isolate, regexp, subject)) { in StringReplaceGlobalRegExpWithString()
640 isolate, regexp, replacement, capture_count, subject_length); in StringReplaceGlobalRegExpWithString()
643 if (regexp->type_tag() == JSRegExp::ATOM && simple_replace) { in StringReplaceGlobalRegExpWithString()
647 isolate, subject, regexp, replacement, last_match_info); in StringReplaceGlobalRegExpWithString()
[all …]
/third_party/skia/infra/bots/gen_tasks_logic/
Dcompile_cas.go31 pathRegexes = []*regexp.Regexp{
32 regexp.MustCompile(`.*\.c$`),
33 regexp.MustCompile(`.*\.cc$`),
34 regexp.MustCompile(`.*\.cpp$`),
35 regexp.MustCompile(`.*\.gn$`),
36 regexp.MustCompile(`.*\.gni$`),
37 regexp.MustCompile(`.*\.h$`),
38 regexp.MustCompile(`.*\.mm$`),
39 regexp.MustCompile(`.*\.storyboard$`),
/third_party/jerryscript/tests/jerry/
Dstring-prototype-search.js32 var regexp = /x/g; variable
33 regexp.lastIndex = "index";
35 assert ("aaxbb".search (regexp) === 2);
36 assert ("aabb".search (regexp) === -1);
37 assert (regexp.lastIndex === "index");
/third_party/node/deps/v8/src/regexp/
Dregexp.cc50 static int IrregexpPrepare(Isolate* isolate, Handle<JSRegExp> regexp,
57 static int AtomExecRaw(Isolate* isolate, Handle<JSRegExp> regexp,
61 static Handle<Object> AtomExec(Isolate* isolate, Handle<JSRegExp> regexp,
71 static int IrregexpExecRaw(Isolate* isolate, Handle<JSRegExp> regexp,
80 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject,
153 bool RegExp::IsUnmodifiedRegExp(Isolate* isolate, Handle<JSRegExp> regexp) { in IsUnmodifiedRegExp() argument
154 return RegExpUtils::IsUnmodifiedRegExp(isolate, regexp); in IsUnmodifiedRegExp()
303 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject, in ExperimentalOneshotExec() argument
306 return ExperimentalRegExp::OneshotExec(isolate, regexp, subject, index, in ExperimentalOneshotExec()
311 MaybeHandle<Object> RegExp::Exec(Isolate* isolate, Handle<JSRegExp> regexp, in Exec() argument
[all …]
/third_party/node/deps/v8/src/codegen/
DDEPS9 "+src/regexp/regexp-interpreter.h",
10 "+src/regexp/experimental/experimental.h",
11 "+src/regexp/regexp-macro-assembler-arch.h",
/third_party/python/Tools/scripts/
Dmailerdaemon.py107 for regexp in emparse_list_list:
108 if type(regexp) is type(()):
109 res = regexp[0].search(data, 0, from_index)
116 res = regexp[1].match(data, res.end(0), from_index)
122 res = regexp.search(data, 0, from_index)
136 for regexp in emparse_list_reason:
137 if type(regexp) is type(''):
140 exp = re.compile(re.escape(email).join(regexp.split('<>')), re.MULTILINE)
146 res = regexp.search(data)

12345678910>>...15