Branch data TLA Line data Source code
1 : : #include <xlnt/packaging/uri.hpp>
2 : :
3 : : namespace xlnt {
4 : :
5 [ + ]:CBC 6476 : uri::uri()
6 : : {
7 : 6476 : }
8 : :
9 : 5127 : uri::uri(const std::string &uri_string)
10 [ + ]: 5127 : : path_(uri_string)
11 : : {
12 : 5127 : }
13 : :
14 : 10922 : std::string uri::to_string() const
15 : : {
16 : 10922 : return path_.string();
17 : : }
18 : :
19 : 12205 : const path &uri::path() const
20 : : {
21 : 12205 : return path_;
22 : : }
23 : :
24 : 5324 : bool uri::operator==(const uri &other) const
25 : : {
26 [ + + ]: 5324 : return to_string() == other.to_string();
27 : : }
28 : :
29 :UBC 0 : bool uri::operator!=(const uri &other) const
30 : : {
31 : 0 : return !(*this == other);
32 : : }
33 : :
34 : : } // namespace xlnt
|