cmake/Source/cmExpandedCommandArgument.cxx

40 lines
928 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"
2019-11-11 23:01:05 +01:00
#include <utility>
cmExpandedCommandArgument::cmExpandedCommandArgument() = default;
2015-04-27 22:25:09 +02:00
2019-11-11 23:01:05 +01:00
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string value,
2016-07-09 11:21:54 +02:00
bool quoted)
2019-11-11 23:01:05 +01:00
: Value(std::move(value))
2016-07-09 11:21:54 +02:00
, 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();
}