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

Method ParseSingleValueTag

Source/cmVisualStudioSlnParser.cxx:595–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595bool cmVisualStudioSlnParser::ParseSingleValueTag(std::string const& line,
596 ParsedLine& parsedLine,
597 State& state)
598{
599 size_t idxEqualSign = line.find('=');
600 auto fullTag = cm::string_view(line).substr(0, idxEqualSign);
601 if (!this->ParseTag(fullTag, parsedLine, state)) {
602 return false;
603 }
604 if (idxEqualSign != std::string::npos) {
605 if (!this->ParseValue(line.substr(idxEqualSign + 1), parsedLine)) {
606 return false;
607 }
608 }
609 return true;
610}
611
612bool cmVisualStudioSlnParser::ParseKeyValuePair(std::string const& line,
613 ParsedLine& parsedLine,

Callers 1

ParseImplMethod · 0.95

Calls 4

ParseTagMethod · 0.95
ParseValueMethod · 0.95
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected