v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <utils.h>
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_ |
|
explicit |
Definition at line 38 of file utils.cc.
References SimpleStringBuilder::buffer_, Vector< T >::New(), and SimpleStringBuilder::position_.
|
inline |
|
inline |
Definition at line 997 of file utils.h.
References SimpleStringBuilder::Finalize(), and SimpleStringBuilder::is_finalized().
|
inline |
Definition at line 1013 of file utils.h.
References ASSERT, SimpleStringBuilder::buffer_, SimpleStringBuilder::is_finalized(), Vector< T >::length(), and SimpleStringBuilder::position_.
Referenced by SimpleStringBuilder::AddDecimalInteger(), SimpleStringBuilder::AddPadding(), Logger::DebugEvent(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), and v8::internal::DoubleToRadixCString().
void AddDecimalInteger | ( | int | value | ) |
Definition at line 64 of file utils.cc.
References SimpleStringBuilder::AddCharacter(), SimpleStringBuilder::buffer_, and SimpleStringBuilder::position_.
void AddPadding | ( | char | c, |
int | count | ||
) |
Definition at line 57 of file utils.cc.
References SimpleStringBuilder::AddCharacter().
Referenced by v8::internal::DoubleToFixedCString(), and v8::internal::DoubleToPrecisionCString().
void AddString | ( | const char * | s | ) |
Definition at line 44 of file utils.cc.
References SimpleStringBuilder::AddSubstring(), and v8::internal::StrLength().
Referenced by v8::internal::DoubleToFixedCString(), and v8::internal::DoubleToPrecisionCString().
void AddSubstring | ( | const char * | s, |
int | n | ||
) |
Definition at line 49 of file utils.cc.
References ASSERT, SimpleStringBuilder::buffer_, SimpleStringBuilder::is_finalized(), v8::internal::kCharSize, Vector< T >::length(), OS::MemCopy(), and SimpleStringBuilder::position_.
Referenced by SimpleStringBuilder::AddString(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), and v8::internal::DoubleToRadixCString().
char * Finalize | ( | ) |
Definition at line 82 of file utils.cc.
References ASSERT, SimpleStringBuilder::buffer_, SimpleStringBuilder::is_finalized(), Vector< T >::length(), SimpleStringBuilder::position_, and Vector< T >::start().
Referenced by v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), v8::internal::DoubleToRadixCString(), and SimpleStringBuilder::~SimpleStringBuilder().
|
inlineprotected |
Definition at line 1041 of file utils.h.
References SimpleStringBuilder::position_.
Referenced by SimpleStringBuilder::AddCharacter(), StringBuilder::AddFormattedList(), SimpleStringBuilder::AddSubstring(), SimpleStringBuilder::Finalize(), SimpleStringBuilder::position(), and SimpleStringBuilder::~SimpleStringBuilder().
|
inline |
Definition at line 1002 of file utils.h.
References ASSERT, SimpleStringBuilder::is_finalized(), and SimpleStringBuilder::position_.
Referenced by v8::internal::DoubleToPrecisionCString().
|
inline |
Definition at line 1008 of file utils.h.
References SimpleStringBuilder::position_.
|
inline |
Definition at line 999 of file utils.h.
References SimpleStringBuilder::buffer_, and Vector< T >::length().
|
protected |
Definition at line 1038 of file utils.h.
Referenced by SimpleStringBuilder::AddCharacter(), SimpleStringBuilder::AddDecimalInteger(), StringBuilder::AddFormattedList(), SimpleStringBuilder::AddSubstring(), SimpleStringBuilder::Finalize(), SimpleStringBuilder::SimpleStringBuilder(), and SimpleStringBuilder::size().
|
protected |
Definition at line 1039 of file utils.h.
Referenced by SimpleStringBuilder::AddCharacter(), SimpleStringBuilder::AddDecimalInteger(), StringBuilder::AddFormattedList(), SimpleStringBuilder::AddSubstring(), SimpleStringBuilder::Finalize(), SimpleStringBuilder::is_finalized(), SimpleStringBuilder::position(), SimpleStringBuilder::Reset(), and SimpleStringBuilder::SimpleStringBuilder().