Refactor string-formatting routines to append to an existing string

This commit is contained in:
ISSOtm authored and Sylvie committed 2024-03-22 14:25:36 -04:00
1 parent 52e8e1f9fc
commit 412073774c
4 files changed
+16 -24

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ public:
void useCharacter(int c);
void finishCharacters();
std::string formatString(std::string const &value) const;
std::string formatNumber(uint32_t value) const;
void appendString(std::string &str, std::string const &value) const;
void appendNumber(std::string &str, uint32_t value) const;
};
#endif // RGBDS_FORMAT_SPEC_H