#include "partition_alloc/partition_alloc_base/strings/cstring_builder.h"
#include "partition_alloc/build_config.h"
#include "partition_alloc/buildflags.h"
#include "partition_alloc/partition_alloc_base/strings/safe_sprintf.h"
#if !PA_BUILDFLAG(IS_WIN)
#include <unistd.h>
#endif
#include <cmath>
#include <cstring>
#include <limits>
#if PA_BUILDFLAG(DCHECKS_ARE_ON)
#include "partition_alloc/partition_alloc_base/check.h"
#define PA_RAW_DCHECK …
#else
#define PA_RAW_DCHECK …
#endif
namespace partition_alloc::internal::base::strings {
namespace {
constexpr size_t kNumDigits10 = …;
constexpr uint64_t Pow10(unsigned exp) { … }
constexpr uint64_t Log10(uint64_t value) { … }
constexpr uint64_t GetDigits10(unsigned num_digits10) { … }
}
template <typename T>
void CStringBuilder::PutInteger(T value) { … }
CStringBuilder& CStringBuilder::operator<<(char ch) { … }
CStringBuilder& CStringBuilder::operator<<(const char* text) { … }
CStringBuilder& CStringBuilder::operator<<(float value) { … }
CStringBuilder& CStringBuilder::operator<<(double value) { … }
CStringBuilder& CStringBuilder::operator<<(int value) { … }
CStringBuilder& CStringBuilder::operator<<(unsigned int value) { … }
CStringBuilder& CStringBuilder::operator<<(long value) { … }
CStringBuilder& CStringBuilder::operator<<(unsigned long value) { … }
CStringBuilder& CStringBuilder::operator<<(long long value) { … }
CStringBuilder& CStringBuilder::operator<<(unsigned long long value) { … }
CStringBuilder& CStringBuilder::operator<<(const void* value) { … }
CStringBuilder& CStringBuilder::operator<<(std::nullptr_t) { … }
const char* CStringBuilder::c_str() { … }
void CStringBuilder::PutFloatingPoint(double value, unsigned num_digits10) { … }
void CStringBuilder::PutNormalFloatingPoint(double value,
unsigned num_digits10) { … }
void CStringBuilder::PutText(const char* text) { … }
void CStringBuilder::PutText(const char* text, size_t length) { … }
}