|
@@ -463,7 +463,7 @@ bool cmVisualStudioSlnParser::ParseImpl(std::istream& input, cmSlnData& output,
|
|
if (!this->ParseBOM(input, line, state))
|
|
if (!this->ParseBOM(input, line, state))
|
|
return false;
|
|
return false;
|
|
do {
|
|
do {
|
|
- line = cmSystemTools::TrimWhitespace(line);
|
|
|
|
|
|
+ line = cmTrimWhitespace(line);
|
|
if (line.empty())
|
|
if (line.empty())
|
|
continue;
|
|
continue;
|
|
ParsedLine parsedLine;
|
|
ParsedLine parsedLine;
|
|
@@ -579,9 +579,9 @@ bool cmVisualStudioSlnParser::ParseKeyValuePair(const std::string& line,
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
const std::string& key = line.substr(0, idxEqualSign);
|
|
const std::string& key = line.substr(0, idxEqualSign);
|
|
- parsedLine.SetTag(cmSystemTools::TrimWhitespace(key));
|
|
|
|
|
|
+ parsedLine.SetTag(cmTrimWhitespace(key));
|
|
const std::string& value = line.substr(idxEqualSign + 1);
|
|
const std::string& value = line.substr(idxEqualSign + 1);
|
|
- parsedLine.AddValue(cmSystemTools::TrimWhitespace(value));
|
|
|
|
|
|
+ parsedLine.AddValue(cmTrimWhitespace(value));
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -590,18 +590,17 @@ bool cmVisualStudioSlnParser::ParseTag(const std::string& fullTag,
|
|
{
|
|
{
|
|
size_t idxLeftParen = fullTag.find('(');
|
|
size_t idxLeftParen = fullTag.find('(');
|
|
if (idxLeftParen == fullTag.npos) {
|
|
if (idxLeftParen == fullTag.npos) {
|
|
- parsedLine.SetTag(cmSystemTools::TrimWhitespace(fullTag));
|
|
|
|
|
|
+ parsedLine.SetTag(cmTrimWhitespace(fullTag));
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
- parsedLine.SetTag(
|
|
|
|
- cmSystemTools::TrimWhitespace(fullTag.substr(0, idxLeftParen)));
|
|
|
|
|
|
+ parsedLine.SetTag(cmTrimWhitespace(fullTag.substr(0, idxLeftParen)));
|
|
size_t idxRightParen = fullTag.rfind(')');
|
|
size_t idxRightParen = fullTag.rfind(')');
|
|
if (idxRightParen == fullTag.npos) {
|
|
if (idxRightParen == fullTag.npos) {
|
|
this->LastResult.SetError(ResultErrorInputStructure,
|
|
this->LastResult.SetError(ResultErrorInputStructure,
|
|
state.GetCurrentLine());
|
|
state.GetCurrentLine());
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- const std::string& arg = cmSystemTools::TrimWhitespace(
|
|
|
|
|
|
+ const std::string& arg = cmTrimWhitespace(
|
|
fullTag.substr(idxLeftParen + 1, idxRightParen - idxLeftParen - 1));
|
|
fullTag.substr(idxLeftParen + 1, idxRightParen - idxLeftParen - 1));
|
|
if (arg.front() == '"') {
|
|
if (arg.front() == '"') {
|
|
if (arg.back() != '"') {
|
|
if (arg.back() != '"') {
|
|
@@ -618,7 +617,7 @@ bool cmVisualStudioSlnParser::ParseTag(const std::string& fullTag,
|
|
bool cmVisualStudioSlnParser::ParseValue(const std::string& value,
|
|
bool cmVisualStudioSlnParser::ParseValue(const std::string& value,
|
|
ParsedLine& parsedLine)
|
|
ParsedLine& parsedLine)
|
|
{
|
|
{
|
|
- const std::string& trimmed = cmSystemTools::TrimWhitespace(value);
|
|
|
|
|
|
+ const std::string& trimmed = cmTrimWhitespace(value);
|
|
if (trimmed.empty())
|
|
if (trimmed.empty())
|
|
parsedLine.AddValue(trimmed);
|
|
parsedLine.AddValue(trimmed);
|
|
else if (trimmed.front() == '"' && trimmed.back() == '"')
|
|
else if (trimmed.front() == '"' && trimmed.back() == '"')
|