cmExpandedCommandArgument.cxx 1016 B

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