// Copyright (c) 2014-2016 Thomas Fussell // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, WRISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE // // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file #pragma once #include #include #include namespace xlnt { /// /// /// class XLNT_API uri { public: /// /// /// uri(); /// /// /// uri(const uri &base, const uri &relative); /// /// /// uri(const uri &base, const path &relative); /// /// /// uri(const std::string &uri_string); /// /// /// bool is_relative() const; /// /// /// bool is_absolute() const; /// /// /// std::string scheme() const; /// /// /// std::string authority() const; /// /// /// bool has_authentication() const; /// /// /// std::string authentication() const; /// /// /// std::string username() const; /// /// /// std::string password() const; /// /// /// std::string host() const; /// /// /// bool has_port() const; /// /// /// std::size_t port() const; /// /// /// path path() const; /// /// /// bool has_query() const; /// /// /// std::string query() const; /// /// /// bool has_fragment() const; /// /// /// std::string fragment() const; /// /// /// std::string to_string() const; /// /// /// uri make_absolute(const uri &base); /// /// /// uri make_reference(const uri &base); /// /// /// friend XLNT_API bool operator==(const uri &left, const uri &right); private: /// /// /// bool absolute_ = false; /// /// /// std::string scheme_; /// /// /// bool has_authentication_ = false; /// /// /// std::string username_; /// /// /// std::string password_; /// /// /// std::string host_; /// /// /// bool has_port_ = false; /// /// /// std::size_t port_ = 0; /// /// /// bool has_query_ = false; /// /// /// std::string query_; /// /// /// bool has_fragment_ = false; /// /// /// std::string fragment_; /// /// /// class path path_; }; } // namespace xlnt