Luna/libluna/include/luna/StringBuilder.h

23 lines
490 B
C
Raw Permalink Normal View History

2023-04-07 09:53:52 +00:00
#pragma once
#include <luna/Buffer.h>
#include <luna/String.h>
class StringBuilder
{
public:
Result<void> add(const String& value);
Result<void> add(StringView value);
Result<void> add(void* value);
Result<void> add(long value);
Result<void> add(unsigned long value);
Result<void> add(char value);
Result<void> format(StringView fmt, ...);
Result<void> vformat(StringView fmt, va_list ap);
Result<String> string();
private:
Buffer m_data;
};