cmExpandedCommandArgument.cxx 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. cmExpandedCommandArgument::cmExpandedCommandArgument()
  5. : Quoted(false)
  6. {
  7. }
  8. cmExpandedCommandArgument::cmExpandedCommandArgument(std::string const& value,
  9. bool quoted)
  10. : Value(value)
  11. , Quoted(quoted)
  12. {
  13. }
  14. std::string const& cmExpandedCommandArgument::GetValue() const
  15. {
  16. return this->Value;
  17. }
  18. bool cmExpandedCommandArgument::WasQuoted() const
  19. {
  20. return this->Quoted;
  21. }
  22. bool cmExpandedCommandArgument::operator==(const char* value) const
  23. {
  24. return this->Value == value;
  25. }
  26. bool cmExpandedCommandArgument::operator==(std::string const& value) const
  27. {
  28. return this->Value == value;
  29. }
  30. bool cmExpandedCommandArgument::empty() const
  31. {
  32. return this->Value.empty();
  33. }
  34. const char* cmExpandedCommandArgument::c_str() const
  35. {
  36. return this->Value.c_str();
  37. }