uri.cpp 373 B

1234567891011121314151617181920212223242526272829
  1. #include <xlnt/packaging/uri.hpp>
  2. namespace xlnt {
  3. uri::uri()
  4. {
  5. }
  6. uri::uri(const std::string &uri_string)
  7. : path_(uri_string)
  8. {
  9. }
  10. std::string uri::to_string() const
  11. {
  12. return path_.string();
  13. }
  14. const path &uri::path() const
  15. {
  16. return path_;
  17. }
  18. bool uri::operator==(const uri &other) const
  19. {
  20. return to_string() == other.to_string();
  21. }
  22. } // namespace xlnt