v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReplacementStringBuilder Class Reference

Public Member Functions

 ReplacementStringBuilder (Heap *heap, Handle< String > subject, int estimated_part_count)
 
void EnsureCapacity (int elements)
 
void AddSubjectSlice (int from, int to)
 
void AddString (Handle< String > string)
 
Handle< StringToString ()
 
void IncrementCharacterCount (int by)
 
Handle< JSArrayGetParts ()
 

Static Public Member Functions

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

Detailed Description

Definition at line 2407 of file runtime.cc.

Constructor & Destructor Documentation

ReplacementStringBuilder ( Heap heap,
Handle< String subject,
int  estimated_part_count 
)
inline

Definition at line 2409 of file runtime.cc.

References ASSERT.

Member Function Documentation

void AddString ( Handle< String string)
inline

Definition at line 2452 of file runtime.cc.

References ASSERT, and ReplacementStringBuilder::IncrementCharacterCount().

Referenced by CompiledReplacement::Apply().

static void AddSubjectSlice ( FixedArrayBuilder builder,
int  from,
int  to 
)
inlinestatic
void AddSubjectSlice ( int  from,
int  to 
)
inline
void EnsureCapacity ( int  elements)
inline

Definition at line 2441 of file runtime.cc.

References FixedArrayBuilder::EnsureCapacity().

Handle<JSArray> GetParts ( )
inline

Definition at line 2500 of file runtime.cc.

References FixedArrayBuilder::ToJSArray().

void IncrementCharacterCount ( int  by)
inline

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