MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / ParsePatternString

Function ParsePatternString

src/Utils/SteamMetadata/PatternLoader.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static PatternMap ParsePatternString(std::string_view body,
131 std::string* outError = nullptr)
132{
133 try {
134 return TableToPatternMap(toml::parse(body));
135 } catch (const toml::parse_error& e) {
136 if (outError) *outError = e.description();
137 return {};
138 }
139}
140
141// ---- popup helpers (detached threads so we never block Steam) ----
142

Callers 1

LoadFunction · 0.85

Calls 1

TableToPatternMapFunction · 0.85

Tested by

no test coverage detected