2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-09-04 22:21:28 +04:00
|
|
|
#include "cmExpandedCommandArgument.h"
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExpandedCommandArgument::cmExpandedCommandArgument()
|
|
|
|
: Quoted(false)
|
2014-09-04 22:21:28 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string const& value,
|
|
|
|
bool quoted)
|
|
|
|
: Value(value)
|
|
|
|
, Quoted(quoted)
|
2014-09-04 22:21:28 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string const& cmExpandedCommandArgument::GetValue() const
|
|
|
|
{
|
|
|
|
return this->Value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cmExpandedCommandArgument::WasQuoted() const
|
|
|
|
{
|
|
|
|
return this->Quoted;
|
|
|
|
}
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
bool cmExpandedCommandArgument::operator==(std::string const& value) const
|
2014-09-04 22:21:28 +04:00
|
|
|
{
|
|
|
|
return this->Value == value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cmExpandedCommandArgument::empty() const
|
|
|
|
{
|
|
|
|
return this->Value.empty();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* cmExpandedCommandArgument::c_str() const
|
|
|
|
{
|
|
|
|
return this->Value.c_str();
|
|
|
|
}
|