GameText & operator=(const GameText &)=delete
Prevent assignment of the registered catalogue.
static GameText * Active()
~GameText()
Unregister the active catalogue and invalidate references to its strings.
const std::string * Find(std::string_view key) const
const std::string & Language() const
Definition stringresources.h:67
bool Empty() const
Definition stringresources.h:71
std::string_view Resolve(std::string_view key)
GameText(const std::filesystem::path &assets, std::string language)
Load strings and register the exclusive active catalogue with SDL.
GameText(const GameText &)=delete
Prevent copying the registered catalogue.
char32_t NextCodePoint(std::string_view text, std::size_t &position)
Decode the code point of UTF-8 text at a position, and step past it.
std::map< std::string, std::string, std::less<> > StringTable
Strings by key, in UTF-8.
Definition language.h:23