/src/CMake/Source/cmExpandedCommandArgument.cxx
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | | file LICENSE.rst or https://cmake.org/licensing for details. */ |
3 | | #include "cmExpandedCommandArgument.h" |
4 | | |
5 | | #include <utility> |
6 | | |
7 | 0 | cmExpandedCommandArgument::cmExpandedCommandArgument() = default; |
8 | | |
9 | | cmExpandedCommandArgument::cmExpandedCommandArgument(std::string value, |
10 | | bool quoted) |
11 | 0 | : Value(std::move(value)) |
12 | 0 | , Quoted(quoted) |
13 | 0 | { |
14 | 0 | } |
15 | | |
16 | | std::string const& cmExpandedCommandArgument::GetValue() const |
17 | 0 | { |
18 | 0 | return this->Value; |
19 | 0 | } |
20 | | |
21 | | bool cmExpandedCommandArgument::WasQuoted() const |
22 | 0 | { |
23 | 0 | return this->Quoted; |
24 | 0 | } |
25 | | |
26 | | bool cmExpandedCommandArgument::operator==(char const* value) const |
27 | 0 | { |
28 | 0 | return this->Value == value; |
29 | 0 | } |
30 | | |
31 | | bool cmExpandedCommandArgument::operator==(std::string const& value) const |
32 | 0 | { |
33 | 0 | return this->Value == value; |
34 | 0 | } |
35 | | |
36 | | bool cmExpandedCommandArgument::empty() const |
37 | 0 | { |
38 | 0 | return this->Value.empty(); |
39 | 0 | } |