![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Classes | |
| struct | ReplacementPart |
Public Member Functions | |
| CompiledReplacement (Isolate *isolate) | |
| bool | Compile (Isolate *isolate, DirectHandle< JSRegExp > regexp, DirectHandle< RegExpData > regexp_data, DirectHandle< String > replacement, int capture_count, int subject_length) |
| void | Apply (ReplacementStringBuilder *builder, int match_from, int match_to, int32_t *match) |
| int | parts () |
Private Types | |
| enum | PartType { SUBJECT_PREFIX = 1 , SUBJECT_SUFFIX , SUBJECT_CAPTURE , REPLACEMENT_SUBSTRING , REPLACEMENT_STRING , EMPTY_REPLACEMENT , NUMBER_OF_PART_TYPES } |
Private Member Functions | |
| template<typename Char > | |
| bool | ParseReplacementPattern (base::Vector< Char > characters, Tagged< FixedArray > capture_name_map, int capture_count, int subject_length) |
Private Attributes | |
| base::SmallVector< ReplacementPart, kStaticVectorSlots > | parts_ |
| DirectHandleSmallVector< String, kStaticVectorSlots > | replacement_substrings_ |
Definition at line 85 of file runtime-regexp.cc.
|
private |
| Enumerator | |
|---|---|
| SUBJECT_PREFIX | |
| SUBJECT_SUFFIX | |
| SUBJECT_CAPTURE | |
| REPLACEMENT_SUBSTRING | |
| REPLACEMENT_STRING | |
| EMPTY_REPLACEMENT | |
| NUMBER_OF_PART_TYPES | |
Definition at line 104 of file runtime-regexp.cc.
|
inlineexplicit |
Definition at line 87 of file runtime-regexp.cc.
| void v8::internal::CompiledReplacement::Apply | ( | ReplacementStringBuilder * | builder, |
| int | match_from, | ||
| int | match_to, | ||
| int32_t * | match ) |
Definition at line 402 of file runtime-regexp.cc.
| bool v8::internal::CompiledReplacement::Compile | ( | Isolate * | isolate, |
| DirectHandle< JSRegExp > | regexp, | ||
| DirectHandle< RegExpData > | regexp_data, | ||
| DirectHandle< String > | replacement, | ||
| int | capture_count, | ||
| int | subject_length ) |
Definition at line 344 of file runtime-regexp.cc.
|
inlineprivate |
Definition at line 164 of file runtime-regexp.cc.
|
inline |
|
private |
Definition at line 340 of file runtime-regexp.cc.
|
private |
Definition at line 341 of file runtime-regexp.cc.