2016-08-12 12:22:14 +08:00
|
|
|
#include <xlnt/packaging/uri.hpp>
|
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
|
|
|
uri::uri()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-24 23:04:57 +08:00
|
|
|
uri::uri(const std::string &uri_string)
|
|
|
|
: path_(uri_string)
|
2016-08-12 12:22:14 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string uri::to_string() const
|
|
|
|
{
|
|
|
|
return path_.string();
|
|
|
|
}
|
|
|
|
|
2018-07-09 10:17:04 +08:00
|
|
|
const path& uri::path() const
|
2016-08-12 12:22:14 +08:00
|
|
|
{
|
|
|
|
return path_;
|
|
|
|
}
|
|
|
|
|
2017-03-23 09:44:59 +08:00
|
|
|
bool uri::operator==(const uri &other) const
|
2016-08-12 12:22:14 +08:00
|
|
|
{
|
2017-03-23 09:44:59 +08:00
|
|
|
return to_string() == other.to_string();
|
2016-08-12 12:22:14 +08:00
|
|
|
}
|
|
|
|
|
2016-11-01 08:48:43 +08:00
|
|
|
} // namespace xlnt
|