2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47: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

@@ -80,10 +80,10 @@ public:
struct SGuiTextPair
{
CGuiTextPane* x0_panes[2] = {};
void SetPairText(const std::u16string& str);
void SetPairText(std::u16string_view str);
};
static SGuiTextPair FindTextPanePair(CGuiFrame* frame, const char* name);
static void FindAndSetPairText(CGuiFrame* frame, const char* name, const std::u16string& str);
static void FindAndSetPairText(CGuiFrame* frame, const char* name, std::u16string_view str);
struct SFileMenuOption
{
@@ -172,7 +172,7 @@ public:
void DoFileMenuAdvance(CGuiTableGroup* caller);
static SFileMenuOption FindFileSelectOption(CGuiFrame* frame, int idx);
static void StartTextAnimating(CGuiTextPane* text, const std::u16string& str, float chRate);
static void StartTextAnimating(CGuiTextPane* text, std::u16string_view str, float chRate);
};
struct SFusionBonusFrame