Skip to content

Changes to URI #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 22, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added a new accessor that allows a client to specify the traits and a…
…llocator for a string.
  • Loading branch information
glynos committed Apr 17, 2013
commit 1e67f6664fef42cdb4602c51b04c49c78c9e701d
5 changes: 4 additions & 1 deletion src/network/uri/uri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ namespace network {
boost::optional<string_view> authority() const;

string_type native() const;
template <typename CharT, class CharTraits = std::char_traits<CharT>, class Alloc = std::allocator<CharT> >
std::basic_string<CharT, CharTraits> string(const Alloc &alloc = Alloc()) const;
std::string string() const;
std::wstring wstring() const;
std::u16string u16string() const;
Expand All @@ -179,10 +181,11 @@ namespace network {
bool opaque() const NETWORK_URI_NOEXCEPT;

uri normalize(uri_comparison_level level) const;
int compare(const uri &other, uri_comparison_level level) const;
uri relativize(const uri &other, uri_comparison_level level) const;
uri resolve(const uri &other, uri_comparison_level level) const;

int compare(const uri &other, uri_comparison_level level) const;

template <typename InputIter, typename OutputIter>
static OutputIter encode_user_info(InputIter first, InputIter last, OutputIter out) {
return detail::encode_user_info(first, last, out);
Expand Down