19 void Clear() { s_.clear(); }
21 const char* Data() {
return s_.c_str(); }
23 size_t Length(
void) {
return s_.size(); }
25 void AddChar(
char ch) { s_.append(1, ch); }
27 void AppendUint(uint i) {
29 std::snprintf(s,
sizeof(s),
"%u", i);
33 void AppendInt(
int i) {
35 std::snprintf(s,
sizeof(s),
"%d", i);
39 void Append(uint i) { AppendUint(i); }
41 void Append(
const char* str) { s_.append(str); }
47 void Append(
const char* s1,
const char* s2) {
51 void Append(
const char* s1, uint i2) {
55 void Append(uint i1,
const char* s2) {
59 void Append(
const char* s1,
const char* s2,
const char* s3) {
64 void Append(
const char* s1,
const char* s2, uint i3) {
69 void Append(
const char* s1, uint i2,
const char* s3) {
74 void Append(uint i1,
const char* s2,
const char* s3) {
79 void Append(
const char* s1,
const char* s2,
const char* s3,
86 void Append(
const char* s1,
const char* s2,
const char* s3, uint i4) {
92 void Append(
const char* s1,
const char* s2, uint i3,
const char* s4) {
98 void Append(
const char* s1, uint i2,
const char* s3,
const char* s4) {
104 void Append(uint i1,
const char* s2,
const char* s3,
const char* s4) {
110 void Append(
const char* s1,
const char* s2,
const char* s3,
const char* s4,