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