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

#include <utils.h>

Inheritance diagram for SimpleStringBuilder:
Collaboration diagram for SimpleStringBuilder:

Public Member Functions

 SimpleStringBuilder (int size)
 
 SimpleStringBuilder (char *buffer, int size)
 
 ~SimpleStringBuilder ()
 
int size () const
 
int position () const
 
void Reset ()
 
void AddCharacter (char c)
 
void AddString (const char *s)
 
void AddSubstring (const char *s, int n)
 
void AddPadding (char c, int count)
 
void AddDecimalInteger (int value)
 
char * Finalize ()
 

Protected Member Functions

bool is_finalized () const
 

Protected Attributes

Vector< char > buffer_
 
int position_
 

Detailed Description

Definition at line 901 of file utils.h.

Constructor & Destructor Documentation

SimpleStringBuilder ( int  size)
explicit
SimpleStringBuilder ( char *  buffer,
int  size 
)
inline

Definition at line 908 of file utils.h.

Member Function Documentation

void AddDecimalInteger ( int  value)
void AddPadding ( char  c,
int  count 
)
void AddString ( const char *  s)
int position ( ) const
inline
void Reset ( )
inline

Definition at line 922 of file utils.h.

References SimpleStringBuilder::position_.

int size ( ) const
inline

Definition at line 913 of file utils.h.

References SimpleStringBuilder::buffer_, and Vector< T >::length().

Field Documentation


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