#pragma once #include #include #include #include namespace playground { // Excel 2003 XML Spreadsheet string files. Later loads override keys. class StringTable { public: bool loadXml(std::string_view xml, std::string* error = nullptr); const std::string* find(std::string_view key) const; std::string get(std::string_view key) const; std::string format(std::string_view key, const std::vector& args) const; size_t size() const { return values_.size(); } private: std::unordered_map values_; }; } // namespace playground