|
@@ -70,7 +70,7 @@ public:
|
|
|
void trim(size_t count) { m_buffer.resize(m_buffer.size() - count); }
|
|
|
|
|
|
template<class SeparatorType, class CollectionType>
|
|
|
- void join(SeparatorType const& separator, CollectionType const& collection)
|
|
|
+ void join(SeparatorType const& separator, CollectionType const& collection, StringView fmtstr = "{}"sv)
|
|
|
{
|
|
|
bool first = true;
|
|
|
for (auto& item : collection) {
|
|
@@ -78,7 +78,7 @@ public:
|
|
|
first = false;
|
|
|
else
|
|
|
append(separator);
|
|
|
- appendff("{}", item);
|
|
|
+ appendff(fmtstr, item);
|
|
|
}
|
|
|
}
|
|
|
|