V8 Project
|
#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_ |
Private Member Functions | |
DISALLOW_IMPLICIT_CONSTRUCTORS (SimpleStringBuilder) | |
|
explicit |
|
inline |
|
inline |
Definition at line 793 of file utils.h.
References Finalize(), and is_finalized().
|
inline |
Definition at line 809 of file utils.h.
References buffer_, DCHECK, is_finalized(), v8::internal::Vector< T >::length(), and position_.
Referenced by AddDecimalInteger(), AddPadding(), v8::internal::CreateExponentialRepresentation(), v8::internal::Logger::DebugEvent(), v8::internal::DoubleToCString(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), and v8::internal::DoubleToRadixCString().
void v8::internal::SimpleStringBuilder::AddDecimalInteger | ( | int | value | ) |
Definition at line 44 of file utils.cc.
References AddCharacter(), buffer_, and position_.
Referenced by v8::internal::CreateExponentialRepresentation(), and v8::internal::DoubleToCString().
void v8::internal::SimpleStringBuilder::AddPadding | ( | char | c, |
int | count | ||
) |
Definition at line 37 of file utils.cc.
References AddCharacter().
Referenced by v8::internal::CreateExponentialRepresentation(), v8::internal::DoubleToCString(), v8::internal::DoubleToFixedCString(), and v8::internal::DoubleToPrecisionCString().
void v8::internal::SimpleStringBuilder::AddString | ( | const char * | s | ) |
Definition at line 24 of file utils.cc.
References AddSubstring(), and v8::internal::StrLength().
Referenced by v8::internal::CreateExponentialRepresentation(), v8::internal::DoubleToCString(), v8::internal::DoubleToFixedCString(), and v8::internal::DoubleToPrecisionCString().
void v8::internal::SimpleStringBuilder::AddSubstring | ( | const char * | s, |
int | n | ||
) |
Definition at line 29 of file utils.cc.
References buffer_, DCHECK, is_finalized(), v8::internal::kCharSize, v8::internal::Vector< T >::length(), v8::internal::MemCopy(), and position_.
Referenced by AddString(), v8::internal::DoubleToCString(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), and v8::internal::DoubleToRadixCString().
|
private |
char * v8::internal::SimpleStringBuilder::Finalize | ( | ) |
Definition at line 62 of file utils.cc.
References buffer_, DCHECK, is_finalized(), v8::internal::Vector< T >::length(), position_, and v8::internal::Vector< T >::start().
Referenced by v8::internal::CreateExponentialRepresentation(), v8::internal::Logger::DebugEvent(), v8::internal::DoubleToCString(), v8::internal::DoubleToFixedCString(), v8::internal::DoubleToPrecisionCString(), v8::internal::DoubleToRadixCString(), and ~SimpleStringBuilder().
|
inlineprotected |
Definition at line 837 of file utils.h.
References position_.
Referenced by AddCharacter(), v8::internal::StringBuilder::AddFormattedList(), AddSubstring(), Finalize(), position(), and ~SimpleStringBuilder().
|
inline |
Definition at line 798 of file utils.h.
References DCHECK, is_finalized(), and position_.
Referenced by v8::internal::DoubleToPrecisionCString().
|
inline |
|
inline |
Definition at line 795 of file utils.h.
References buffer_, and v8::internal::Vector< T >::length().
Referenced by SimpleStringBuilder().
|
protected |
Definition at line 834 of file utils.h.
Referenced by AddCharacter(), AddDecimalInteger(), v8::internal::StringBuilder::AddFormattedList(), AddSubstring(), Finalize(), SimpleStringBuilder(), and size().
|
protected |
Definition at line 835 of file utils.h.
Referenced by AddCharacter(), AddDecimalInteger(), v8::internal::StringBuilder::AddFormattedList(), AddSubstring(), Finalize(), is_finalized(), position(), Reset(), and SimpleStringBuilder().