v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ReplacementStringBuilder Class Reference

#include <string-builder.h>

Collaboration diagram for v8::internal::ReplacementStringBuilder:

Public Member Functions

 ReplacementStringBuilder (Heap *heap, DirectHandle< String > subject, int estimated_part_count)
 
void AddSubjectSlice (int from, int to)
 
void AddString (DirectHandle< String > string)
 
MaybeDirectHandle< StringToString ()
 
void IncrementCharacterCount (uint32_t by)
 

Static Public Member Functions

static void AddSubjectSlice (FixedArrayBuilder *builder, int from, int to)
 

Private Member Functions

void AddElement (DirectHandle< Object > element)
 
void EnsureCapacity (int elements)
 

Private Attributes

Heapheap_
 
FixedArrayBuilder array_builder_
 
DirectHandle< Stringsubject_
 
uint32_t character_count_
 
bool is_one_byte_
 

Detailed Description

Definition at line 44 of file string-builder.h.

Constructor & Destructor Documentation

◆ ReplacementStringBuilder()

v8::internal::ReplacementStringBuilder::ReplacementStringBuilder ( Heap * heap,
DirectHandle< String > subject,
int estimated_part_count )

Definition at line 177 of file string-builder.cc.

Member Function Documentation

◆ AddElement()

void v8::internal::ReplacementStringBuilder::AddElement ( DirectHandle< Object > element)
private

Definition at line 237 of file string-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddString()

void v8::internal::ReplacementStringBuilder::AddString ( DirectHandle< String > string)

Definition at line 194 of file string-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddSubjectSlice() [1/2]

void v8::internal::ReplacementStringBuilder::AddSubjectSlice ( FixedArrayBuilder * builder,
int from,
int to )
inlinestatic

Definition at line 39 of file string-builder-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddSubjectSlice() [2/2]

void v8::internal::ReplacementStringBuilder::AddSubjectSlice ( int from,
int to )
inline

Definition at line 56 of file string-builder-inl.h.

Here is the call graph for this function:

◆ EnsureCapacity()

void v8::internal::ReplacementStringBuilder::EnsureCapacity ( int elements)
private

Definition at line 190 of file string-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IncrementCharacterCount()

void v8::internal::ReplacementStringBuilder::IncrementCharacterCount ( uint32_t by)
inline

Definition at line 59 of file string-builder.h.

Here is the caller graph for this function:

◆ ToString()

MaybeDirectHandle< String > v8::internal::ReplacementStringBuilder::ToString ( )

Definition at line 203 of file string-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ array_builder_

FixedArrayBuilder v8::internal::ReplacementStringBuilder::array_builder_
private

Definition at line 73 of file string-builder.h.

◆ character_count_

uint32_t v8::internal::ReplacementStringBuilder::character_count_
private

Definition at line 75 of file string-builder.h.

◆ heap_

Heap* v8::internal::ReplacementStringBuilder::heap_
private

Definition at line 72 of file string-builder.h.

◆ is_one_byte_

bool v8::internal::ReplacementStringBuilder::is_one_byte_
private

Definition at line 76 of file string-builder.h.

◆ subject_

DirectHandle<String> v8::internal::ReplacementStringBuilder::subject_
private

Definition at line 74 of file string-builder.h.


The documentation for this class was generated from the following files: