29 #include "../include/v8stdint.h"
50 ASSERT(static_cast<size_t>(n) <= strlen(s));
57 for (
int i = 0; i < count; i++) {
64 uint32_t number =
static_cast<uint32_t
>(value);
67 number =
static_cast<uint32_t
>(-value);
70 for (uint32_t factor = 10; digits < 10; digits++, factor *= 10) {
71 if (factor > number)
break;
74 for (
int i = 1; i <= digits; i++) {
89 return buffer_.start();
const DivMagicNumbers DivMagicNumberFor625
const DivMagicNumbers DivMagicNumberFor(int32_t divisor)
void AddString(const char *s)
const DivMagicNumbers DivMagicNumberFor3
const DivMagicNumbers DivMagicNumberFor5
const DivMagicNumbers DivMagicNumberFor9
#define ASSERT(condition)
SimpleStringBuilder(int size)
bool is_finalized() const
const DivMagicNumbers DivMagicNumberFor125
static Vector< T > New(int length)
int StrLength(const char *string)
const DivMagicNumbers DivMagicNumberFor11
void AddSubstring(const char *s, int n)
void AddCharacter(char c)
const DivMagicNumbers DivMagicNumberFor25
void AddDecimalInteger(int value)
void AddPadding(char c, int count)
const DivMagicNumbers InvalidDivMagicNumber
const DivMagicNumbers DivMagicNumberFor7