[Glacier] Add a specific VariableStringBuilder for StrFormat.
This commit is contained in:
parent
a745f45b5d
commit
601f29c324
6 changed files with 58 additions and 24 deletions
|
|
@ -59,10 +59,15 @@ void StrFormatInternal(StringBuilder& builder, StringView format, T value,
|
|||
}
|
||||
|
||||
template <typename... Args>
|
||||
StringBuilder StrFormat(StringView format, Args... args) {
|
||||
StringBuilder builder;
|
||||
String StrFormat(StringView format, Args... args) {
|
||||
VariableStringBuilder builder;
|
||||
StrFormatInternal(builder, format, args...);
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void StrFormat(StringBuilder& builder, StringView format, Args... args) {
|
||||
StrFormatInternal(builder, format, args...);
|
||||
return glcr::Move(builder);
|
||||
}
|
||||
|
||||
} // namespace glcr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue