1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Fix Format_VA. Rename Format to StdFormat.

author jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1655955994 -0400
committer jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1656516326 -0400

Fixed Format_VA and renamed Format to StdFormat. Both now output to Std::String, while taking the same input as before. Changed functions that use these two to account for this output difference
This commit is contained in:
jazzysoggy
2022-06-22 23:46:34 -04:00
committed by Hielke Morsink
parent 55c8a3d775
commit c0853b56ad
10 changed files with 54 additions and 117 deletions

View File

@@ -32,10 +32,10 @@ void StringBuilder::Append(codepoint_t codepoint)
_buffer.insert(_buffer.end(), data.begin(), data.end());
}
void StringBuilder::Append(const utf8* text)
void StringBuilder::Append(std::string_view text)
{
size_t textLength = String::SizeOf(text);
Append(text, textLength);
size_t textLength = text.length();
Append(text.data(), textLength);
}
void StringBuilder::Append(const utf8* text, size_t textLength)