cmake/Source/cmExpandedCommandArgument.cxx

46 lines
1003 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2015-04-27 22:25:09 +02:00
#include "cmExpandedCommandArgument.h"
2016-07-09 11:21:54 +02:00
cmExpandedCommandArgument::cmExpandedCommandArgument()
: Quoted(false)
2015-04-27 22:25:09 +02:00
{
}
2016-07-09 11:21:54 +02:00
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string const& value,
bool quoted)
: Value(value)
, Quoted(quoted)
2015-04-27 22:25:09 +02:00
{
}
std::string const& cmExpandedCommandArgument::GetValue() const
{
return this->Value;
}
bool cmExpandedCommandArgument::WasQuoted() const
{
return this->Quoted;
}
2018-04-23 21:13:27 +02:00
bool cmExpandedCommandArgument::operator==(const char* value) const
{
return this->Value == value;
}
2016-07-09 11:21:54 +02:00
bool cmExpandedCommandArgument::operator==(std::string const& value) const
2015-04-27 22:25:09 +02:00
{
return this->Value == value;
}
bool cmExpandedCommandArgument::empty() const
{
return this->Value.empty();
}
const char* cmExpandedCommandArgument::c_str() const
{
return this->Value.c_str();
}