MCPcopy Create free account
hub / github.com/Beckhoff/ADS / ParseStringData

Function ParseStringData

AdsLib/RegistryAccess.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static void ParseStringData(RegistryEntry &value, const char *&it,
128 std::istream & /*input*/, size_t &lineNumber)
129{
130 // REG_SZ data should end with a closing quote and null terminator
131 while ('\0' != it[0] && '\0' != it[1]) {
132 Unescape(it, lineNumber);
133 value.PushData(*it);
134 ++it;
135 }
136 if ('\"' != *it) {
137 PARSING_EXCEPTION("missing closing quotation mark");
138 }
139 value.PushData('\0');
140}
141
142static void ParseDwordData(bhf::ads::RegistryEntry &value, const char *&it,
143 std::istream & /*input*/, size_t &lineNumber)

Callers

nothing calls this directly

Calls 2

UnescapeFunction · 0.85
PushDataMethod · 0.80

Tested by

no test coverage detected