mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
25 lines
379 B
C++
25 lines
379 B
C++
#include "StringBuilder.h"
|
|
|
|
namespace AK {
|
|
|
|
void StringBuilder::append(String&& str)
|
|
{
|
|
m_strings.append(std::move(str));
|
|
}
|
|
|
|
void StringBuilder::append(char ch)
|
|
{
|
|
m_strings.append(StringImpl::create(&ch, 1));
|
|
}
|
|
|
|
String StringBuilder::build()
|
|
{
|
|
auto strings = std::move(m_strings);
|
|
if (strings.isEmpty())
|
|
return String::empty();
|
|
|
|
return String();
|
|
}
|
|
|
|
}
|
|
|