MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / parseEntry

Function parseEntry

Tactility/Source/app/timezone/TimeZone.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36static bool parseEntry(const std::string& input, std::string& outName, std::string& outCode) {
37 std::string partial_strip = input.substr(1, input.size() - 3);
38 auto first_end_quote = partial_strip.find('"');
39 if (first_end_quote == std::string::npos) {
40 return false;
41 } else {
42 outName = partial_strip.substr(0, first_end_quote);
43 outCode = partial_strip.substr(first_end_quote + 3);
44 return true;
45 }
46}
47
48// region Result
49

Callers 1

readTimeZonesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected