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

Method ParseStringValue

AdsLib/RegistryAccess.cpp:412–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void RegistryEntry::ParseStringValue(const char *&it, size_t &lineNumber)
413{
414 // Skip opening quote
415 for (++it; '\0' != *it; ++it) {
416 if ('"' == *it) {
417 return;
418 }
419 // String values are stored unescaped
420 Unescape(it, lineNumber);
421 buffer.push_back(*it);
422 }
423 PARSING_EXCEPTION("missing closing quotation mark for value");
424}
425
426static size_t WriteEscaped(std::ostream &os, const uint8_t *it,
427 const bool addOpeningQuote = true)

Callers 1

RegFileParseFunction · 0.80

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected