2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

string_view refactor

This commit is contained in:
Jack Andersen
2017-11-12 20:19:18 -10:00
parent 742ab2514f
commit f7ec7bdc0c
345 changed files with 907 additions and 921 deletions

View File

@@ -230,7 +230,7 @@ void CGuiTextSupport::SetFontColor(const zeus::CColor& col)
}
}
void CGuiTextSupport::AddText(const std::u16string& str)
void CGuiTextSupport::AddText(std::u16string_view str)
{
if (x60_renderBuf)
{
@@ -242,7 +242,7 @@ void CGuiTextSupport::AddText(const std::u16string& str)
ClearRenderBuffer();
}
void CGuiTextSupport::SetText(const std::u16string& str, bool multipage)
void CGuiTextSupport::SetText(std::u16string_view str, bool multipage)
{
if (x0_string.compare(str))
{
@@ -255,7 +255,7 @@ void CGuiTextSupport::SetText(const std::u16string& str, bool multipage)
}
}
void CGuiTextSupport::SetText(const std::string& str, bool multipage)
void CGuiTextSupport::SetText(std::string_view str, bool multipage)
{
SetText(hecl::UTF8ToChar16(str), multipage);
}