MCPcopy Create free account
hub / github.com/Kitware/CMake / ParseValue

Method ParseValue

Source/cmVisualStudioSlnParser.cxx:658–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658bool cmVisualStudioSlnParser::ParseValue(std::string const& value,
659 ParsedLine& parsedLine)
660{
661 std::string const& trimmed = cmTrimWhitespace(value);
662 if (trimmed.empty()) {
663 parsedLine.AddValue(trimmed);
664 } else if (trimmed.front() == '"' && trimmed.back() == '"') {
665 parsedLine.AddQuotedValue(trimmed.substr(1, trimmed.size() - 2));
666 } else {
667 parsedLine.AddValue(trimmed);
668 }
669 return true;
670}

Callers 2

ParseMultiValueTagMethod · 0.95
ParseSingleValueTagMethod · 0.95

Calls 8

cmTrimWhitespaceFunction · 0.85
AddValueMethod · 0.80
AddQuotedValueMethod · 0.80
emptyMethod · 0.45
frontMethod · 0.45
backMethod · 0.45
substrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected