Home
last modified time | relevance | path

Searched refs:RegExp (Results 1 - 25 of 63) sorted by relevance

123

/third_party/node/deps/v8/src/regexp/
H A Dregexp-interpreter.h20 FAILURE = RegExp::kInternalRegExpFailure,
21 SUCCESS = RegExp::kInternalRegExpSuccess,
22 EXCEPTION = RegExp::kInternalRegExpException,
23 RETRY = RegExp::kInternalRegExpRetry,
24 FALLBACK_TO_EXPERIMENTAL = RegExp::kInternalRegExpFallbackToExperimental,
49 RegExp::CallOrigin call_origin,
56 RegExp::CallOrigin call_origin,
62 int start_position, RegExp::CallOrigin call_origin);
H A Dregexp.cc34 // Implements RegExp.prototype.toString, see ECMA-262 section 15.10.6.4.
43 // Prepare a RegExp for being executed one or more times (using
82 RegExp::ExecQuirks exec_quirks = RegExp::ExecQuirks::kNone);
106 bool RegExp::CanGenerateBytecode() { in CanGenerateBytecode()
112 bool RegExp::VerifySyntax(Zone* zone, uintptr_t stack_limit, const CharT* input, in VerifySyntax()
123 template bool RegExp::VerifySyntax<uint8_t>(Zone*, uintptr_t, const uint8_t*,
127 template bool RegExp::VerifySyntax<base::uc16>(
131 MaybeHandle<Object> RegExp::ThrowRegExpException(Isolate* isolate, in ThrowRegExpException()
147 void RegExp
[all...]
H A Dregexp-macro-assembler.h273 // Result of calling generated native RegExp code.
285 FAILURE = RegExp::kInternalRegExpFailure,
286 SUCCESS = RegExp::kInternalRegExpSuccess,
287 EXCEPTION = RegExp::kInternalRegExpException,
288 RETRY = RegExp::kInternalRegExpRetry,
289 FALLBACK_TO_EXPERIMENTAL = RegExp::kInternalRegExpFallbackToExperimental,
290 SMALLEST_REGEXP_RESULT = RegExp::kInternalRegExpSmallestResult,
319 // Called from RegExp if the backtrack stack limit is hit. Tries to expand
329 RegExp::CallOrigin call_origin,
341 // Used by generated RegExp cod
[all...]
H A Dregexp-ast.cc12 void* RegExp##Name::Accept(RegExpVisitor* visitor, void* data) { \
19 RegExp##Name* RegExpTree::As##Name() { return nullptr; } \
25 RegExp##Name* RegExp##Name::As##Name() { return this; } \
26 bool RegExp##Name::Is##Name() { return true; }
146 #define MAKE_CASE(Name) void* Visit##Name(RegExp##Name*, void* data) override;
H A Dregexp-interpreter.cc210 RegExp::CallOrigin call_origin) { in ThrowStackOverflow()
211 CHECK(call_origin == RegExp::CallOrigin::kFromRuntime); in ThrowStackOverflow()
222 Isolate* isolate, RegExp::CallOrigin call_origin) { in MaybeThrowStackOverflow()
223 if (call_origin == RegExp::CallOrigin::kFromRuntime) { in MaybeThrowStackOverflow()
255 Isolate* isolate, RegExp::CallOrigin call_origin, ByteArray* code_array_out, in HandleInterrupts()
263 if (call_origin == RegExp::CallOrigin::kFromJs) { in HandleInterrupts()
275 DCHECK(call_origin == RegExp::CallOrigin::kFromRuntime); in HandleInterrupts()
388 uint32_t current_char, RegExp::CallOrigin call_origin, in RawMatch()
1059 RegExp::CallOrigin call_origin) { in Match()
1074 int start_position, RegExp in MatchInternal()
[all...]
H A Dregexp-macro-assembler.cc289 Isolate* isolate, int start_index, RegExp::CallOrigin call_origin, in CheckStackGuardState()
300 if (call_origin == RegExp::CallOrigin::kFromJs) { in CheckStackGuardState()
318 DCHECK(call_origin == RegExp::CallOrigin::kFromRuntime); in CheckStackGuardState()
436 RegExp::CallOrigin call_origin = RegExp::CallOrigin::kFromRuntime; in Execute()
450 // We detected a stack overflow (on the backtrack stack) in RegExp code, in Execute()
/third_party/node/deps/v8/src/regexp/experimental/
H A Dexperimental.cc84 USE(RegExp::ThrowRegExpException(isolate, regexp, source, in CompileImpl()
95 RegExp::CreateCaptureNameMap(isolate, parse_result.named_captures); in CompileImpl()
136 int32_t ExecRawImpl(Isolate* isolate, RegExp::CallOrigin call_origin, in ExecRawImpl()
154 } while (result == RegExp::kInternalRegExpRetry && in ExecRawImpl()
155 call_origin == RegExp::kFromRuntime); in ExecRawImpl()
163 RegExp::CallOrigin call_origin, in ExecRaw()
187 RegExp::CallOrigin call_origin, Isolate* isolate, Address regexp) { in MatchForCallFromJs()
191 DCHECK(call_origin == RegExp::CallOrigin::kFromJs); in MatchForCallFromJs()
202 return ExecRaw(isolate, RegExp::kFromJs, regexp_obj, subject_string, in MatchForCallFromJs()
209 RegExp in Exec()
[all...]
H A Dexperimental.h37 RegExp::CallOrigin call_origin,
42 RegExp::ExecQuirks exec_quirks = RegExp::ExecQuirks::kNone);
43 static int32_t ExecRaw(Isolate* isolate, RegExp::CallOrigin call_origin,
53 RegExp::ExecQuirks exec_quirks = RegExp::ExecQuirks::kNone);
H A Dexperimental-interpreter.cc139 NfaInterpreter(Isolate* isolate, RegExp::CallOrigin call_origin, in NfaInterpreter()
175 if (err_code != RegExp::kInternalRegExpSuccess) return err_code; in FindMatches()
224 // RegExp::kInternalRegExpSuccess if execution can continue, and an error
228 if (call_origin_ == RegExp::CallOrigin::kFromJs) { in HandleInterrupts()
235 return RegExp::kInternalRegExpException; in HandleInterrupts()
237 return RegExp::kInternalRegExpRetry; in HandleInterrupts()
240 DCHECK(call_origin_ == RegExp::CallOrigin::kFromRuntime); in HandleInterrupts()
250 return RegExp::kInternalRegExpException; in HandleInterrupts()
265 return RegExp::kInternalRegExpException; in HandleInterrupts()
273 return RegExp in HandleInterrupts()
[all...]
/third_party/node/deps/v8/include/v8-include/
H A Dv8-regexp.h18 * An instance of the built-in RegExp constructor (ECMA-262, 15.10).
20 class V8_EXPORT RegExp : public Object { class
51 * RegExp::New(v8::String::New("foo"),
52 * static_cast<RegExp::Flags>(kGlobal | kMultiline))
55 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
64 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> NewWithBacktrackLimit(
69 * Executes the current RegExp instance on the given subject string.
70 * Equivalent to RegExp.prototype.exec as described in
77 * Note: modifies global context state, accessible e.g. through RegExp.input.
93 V8_INLINE static RegExp* Cas
[all...]
/third_party/node/deps/v8/include/
H A Dv8-regexp.h18 * An instance of the built-in RegExp constructor (ECMA-262, 15.10).
20 class V8_EXPORT RegExp : public Object { class
50 * RegExp::New(v8::String::New("foo"),
51 * static_cast<RegExp::Flags>(kGlobal | kMultiline))
54 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
63 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> NewWithBacktrackLimit(
68 * Executes the current RegExp instance on the given subject string.
69 * Equivalent to RegExp.prototype.exec as described in
76 * Note: modifies global context state, accessible e.g. through RegExp.input.
92 V8_INLINE static RegExp* Cas
[all...]
/third_party/node/deps/v8/src/inspector/
H A Dv8-regex.cc34 unsigned flags = v8::RegExp::kNone; in V8Regex()
35 if (!caseSensitive) flags |= v8::RegExp::kIgnoreCase; in V8Regex()
36 if (multiline) flags |= v8::RegExp::kMultiline; in V8Regex()
38 v8::Local<v8::RegExp> regex; in V8Regex()
39 if (v8::RegExp::New(context, toV8String(isolate, pattern), in V8Regex()
40 static_cast<v8::RegExp::Flags>(flags)) in V8Regex()
70 v8::Local<v8::RegExp> regex = m_regex.Get(isolate); in match()
83 // RegExp#exec returns null if there's no match, otherwise it returns an in match()
88 // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/exec in match()
H A Dv8-webdriver-serializer.cc59 String16 _descriptionForRegExpFlags(v8::Local<v8::RegExp> value) { in _descriptionForRegExpFlags()
61 v8::RegExp::Flags flags = value->GetFlags(); in _descriptionForRegExpFlags()
62 if (flags & v8::RegExp::Flags::kHasIndices) result_string_builder.append('d'); in _descriptionForRegExpFlags()
63 if (flags & v8::RegExp::Flags::kGlobal) result_string_builder.append('g'); in _descriptionForRegExpFlags()
64 if (flags & v8::RegExp::Flags::kIgnoreCase) result_string_builder.append('i'); in _descriptionForRegExpFlags()
65 if (flags & v8::RegExp::Flags::kLinear) result_string_builder.append('l'); in _descriptionForRegExpFlags()
66 if (flags & v8::RegExp::Flags::kMultiline) result_string_builder.append('m'); in _descriptionForRegExpFlags()
67 if (flags & v8::RegExp::Flags::kDotAll) result_string_builder.append('s'); in _descriptionForRegExpFlags()
68 if (flags & v8::RegExp::Flags::kUnicode) result_string_builder.append('u'); in _descriptionForRegExpFlags()
69 if (flags & v8::RegExp in _descriptionForRegExpFlags()
[all...]
H A Dv8-regex.h13 class RegExp;
35 v8::Global<v8::RegExp> m_regex;
/third_party/libphonenumber/cpp/src/phonenumbers/
H A Dregexp_cache.h17 // RegExpCache is a simple wrapper around hash_map<> to store RegExp objects.
19 // To get a cached RegExp object for a regexp pattern string, call the
21 // a RegExp object corresponding to the pattern string doesn't already exist, it
25 // const RegExp& regexp = cache.GetRegExp("\d");
49 class RegExp;
54 typedef std::tr1::unordered_map<string, const RegExp*> CacheImpl;
56 typedef std::map<string, const RegExp*> CacheImpl;
68 const RegExp& GetRegExp(const string& pattern);
H A Dphonenumbermatcher.cc244 scoped_ptr<const RegExp> pub_pages_;
247 scoped_ptr<const RegExp> slash_separated_dates_;
250 scoped_ptr<const RegExp> time_stamps_;
251 scoped_ptr<const RegExp> time_stamps_suffix_;
255 scoped_ptr<const RegExp> matching_brackets_;
266 scoped_ptr<std::vector<const RegExp*> > inner_matches_;
267 scoped_ptr<const RegExp> capture_up_to_second_number_start_pattern_;
268 scoped_ptr<const RegExp> capturing_ascii_digits_pattern_;
270 scoped_ptr<const RegExp> lead_class_pattern_;
272 scoped_ptr<const RegExp> pattern
[all...]
H A Dregexp_adapter.h18 // RegExp adapter to allow a pluggable regexp engine. It has been introduced
37 // Consume() method of RegExp which may differ depending on its various
50 class RegExp { class
52 virtual ~RegExp() {} in ~RegExp()
187 // implementing RegExp and RegExpInput.
196 // Creates a new instance of RegExp. The deletion of the returned instance is
198 virtual RegExp* CreateRegExp(const string& utf8_regexp) const = 0;
H A Dregexp_cache.cc49 const RegExp& RegExpCache::GetRegExp(const string& pattern) { in GetRegExp()
54 const RegExp* regexp = regexp_factory_.CreateRegExp(pattern); in GetRegExp()
H A Dphonenumberutil.cc715 scoped_ptr<const RegExp> single_international_prefix_;
717 scoped_ptr<const RegExp> digits_pattern_;
718 scoped_ptr<const RegExp> capturing_digit_pattern_;
719 scoped_ptr<const RegExp> capturing_ascii_digits_pattern_;
730 scoped_ptr<const RegExp> valid_start_char_pattern_;
734 scoped_ptr<const RegExp> capture_up_to_second_number_start_pattern_;
742 scoped_ptr<const RegExp> unwanted_end_char_pattern_;
745 scoped_ptr<const RegExp> separator_pattern_;
754 scoped_ptr<const RegExp> extn_pattern_;
759 scoped_ptr<const RegExp> valid_phone_number_pattern
[all...]
H A Dregexp_adapter_re2.cc93 // Implementation of RegExp abstract class.
94 class RE2RegExp : public RegExp {
159 RegExp* RE2RegExpFactory::CreateRegExp(const string& utf8_regexp) const { in CreateRegExp()
H A Dregexp_adapter_icu.cc62 // Implementation of the abstract classes RegExpInput and RegExp using ICU
88 // call to ConsumeRegExp() or RegExp::Consume() advances the position in the
105 // ICU implementation of the RegExp abstract class.
106 class IcuRegExp : public RegExp {
240 RegExp* ICURegExpFactory::CreateRegExp(const string& utf8_regexp) const { in CreateRegExp()
/third_party/libphonenumber/cpp/test/phonenumbers/
H A Dregexp_adapter_test.cc56 const scoped_ptr<const RegExp> digits;
57 const scoped_ptr<const RegExp> parentheses_digits;
58 const scoped_ptr<const RegExp> single_digit;
59 const scoped_ptr<const RegExp> two_digit_groups;
60 const scoped_ptr<const RegExp> six_digit_groups;
116 const scoped_ptr<const RegExp> plus_sign(factory.CreateRegExp("(\\+)")); in TEST_F()
201 const scoped_ptr<const RegExp> reg_exp(factory.CreateRegExp("([\\da-z]+)")); in TEST_F()
227 const scoped_ptr<const RegExp> reg_exp(factory.CreateRegExp("([\\da-z]+)")); in TEST_F()
261 const scoped_ptr<const RegExp> single_letter( in TEST_F()
334 const scoped_ptr<const RegExp> reg_ex in TEST_F()
[all...]
H A Dregexp_cache_test.cc52 const RegExp& regexp1 = cache_.GetRegExp(pattern1); in TEST_F()
54 const RegExp& regexp2 = cache_.GetRegExp(pattern2); in TEST_F()
/third_party/node/deps/v8/src/objects/
H A Djs-regexp.h105 STATIC_ASSERT(static_cast<int>(kNone) == v8::RegExp::kNone);
107 STATIC_ASSERT(static_cast<int>(k##Camel) == v8::RegExp::k##Camel); \
112 STATIC_ASSERT(kFlagCount == v8::RegExp::kFlagCount);
257 // properties, as assigned by RegExp.prototype.exec, which allows
258 // faster creation of RegExp exec results.
299 // properties, as assigned by RegExp.prototype.exec, which allows
300 // faster creation of RegExp exec results.
/third_party/node/deps/v8/src/runtime/
H A Druntime-regexp.cc617 RegExp::SetLastMatchInfo(isolate, last_match_info, subject, 0, match_indices); in StringReplaceGlobalAtomRegExpWithString()
633 // Ensure the RegExp is compiled so we can access the capture-name map. in StringReplaceGlobalRegExpWithString()
634 if (!RegExp::EnsureFullyCompiled(isolate, regexp, subject)) { in StringReplaceGlobalRegExpWithString()
695 RegExp::SetLastMatchInfo(isolate, last_match_info, subject, capture_count, in StringReplaceGlobalRegExpWithString()
765 RegExp::SetLastMatchInfo(isolate, last_match_info, subject, capture_count, in StringReplaceGlobalRegExpWithEmptyString()
886 RegExp::ExecQuirks exec_quirks) { in RegExpExec()
892 return RegExp::Exec(isolate, regexp, subject, index, last_match_info, in RegExpExec()
899 RegExp::ExecQuirks exec_quirks) { in ExperimentalOneshotExec()
905 return RegExp::ExperimentalOneshotExec(isolate, regexp, subject, index, in ExperimentalOneshotExec()
921 RegExp in RUNTIME_FUNCTION()
[all...]

Completed in 19 milliseconds

123