2016-08-12 00:22:14 -04:00
|
|
|
#include <xlnt/packaging/uri.hpp>
|
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
|
|
|
uri::uri()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-24 10:04:57 -05:00
|
|
|
uri::uri(const std::string &uri_string)
|
|
|
|
: path_(uri_string)
|
2016-08-12 00:22:14 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string uri::to_string() const
|
|
|
|
{
|
|
|
|
return path_.string();
|
|
|
|
}
|
|
|
|
|
2016-12-02 14:37:50 +01:00
|
|
|
path uri::path() const
|
2016-08-12 00:22:14 -04:00
|
|
|
{
|
|
|
|
return path_;
|
|
|
|
}
|
|
|
|
|
2017-03-22 21:44:59 -04:00
|
|
|
bool uri::operator==(const uri &other) const
|
2016-08-12 00:22:14 -04:00
|
|
|
{
|
2017-03-22 21:44:59 -04:00
|
|
|
return to_string() == other.to_string();
|
2016-08-12 00:22:14 -04:00
|
|
|
}
|
|
|
|
|
2016-10-31 20:48:43 -04:00
|
|
|
} // namespace xlnt
|