Extract standalone Playground SDK source foundation

This commit is contained in:
CRTkafa 2026-10-02 16:54:36 +00:00
commit d49c22a06c
3567 changed files with 1657902 additions and 0 deletions

22
core/string_table.h Normal file
View file

@ -0,0 +1,22 @@
#pragma once
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
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<std::string>& args) const;
size_t size() const { return values_.size(); }
private:
std::unordered_map<std::string, std::string> values_;
};
} // namespace playground