v8
3.14.5(node0.10.28)
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 37 of file utils.cc.
References SimpleStringBuilder::buffer_, Vector< T >::New(), and SimpleStringBuilder::position_.
|
inline |
|
inline |
Definition at line 911 of file utils.h.
References SimpleStringBuilder::Finalize(), and SimpleStringBuilder::is_finalized().
|
inline |
Definition at line 927 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 63 of file utils.cc.
References SimpleStringBuilder::AddCharacter(), SimpleStringBuilder::buffer_, and SimpleStringBuilder::position_.
void AddPadding | ( | char | c, |
int | count | ||
) |
Definition at line 56 of file utils.cc.
References SimpleStringBuilder::AddCharacter().
Referenced by v8::internal::DoubleToFixedCString(), and v8::internal::DoubleToPrecisionCString().
void AddString | ( | const char * | s | ) |
Definition at line 43 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 48 of file utils.cc.
References ASSERT, SimpleStringBuilder::buffer_, SimpleStringBuilder::is_finalized(), v8::internal::kCharSize, Vector< T >::length(), and SimpleStringBuilder::position_.
Referenced by SimpleStringBuilder::AddString(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), and v8::internal::DoubleToRadixCString().
char * Finalize | ( | ) |
Definition at line 81 of file utils.cc.
References ASSERT, SimpleStringBuilder::buffer_, SimpleStringBuilder::is_finalized(), Vector< T >::length(), and SimpleStringBuilder::position_.
Referenced by v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), v8::internal::DoubleToRadixCString(), and SimpleStringBuilder::~SimpleStringBuilder().
|
inlineprotected |
Definition at line 955 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 916 of file utils.h.
References ASSERT, SimpleStringBuilder::is_finalized(), and SimpleStringBuilder::position_.
Referenced by v8::internal::DoubleToPrecisionCString().
|
inline |
Definition at line 922 of file utils.h.
References SimpleStringBuilder::position_.
|
inline |
Definition at line 913 of file utils.h.
References SimpleStringBuilder::buffer_, and Vector< T >::length().
|
protected |
Definition at line 952 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 953 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().