Пример #1
0
inline
std::string host(const uri &uri_) {
    return uri_.host();
}
Пример #2
0
inline
std::string user_info(const uri &uri_) {
    return uri_.user_info();
}
Пример #3
0
inline
std::string scheme(const uri &uri_) {
    return uri_.scheme();
}
Пример #4
0
unix_streambuf::unix_streambuf( std::ios_base::openmode m, const uri &path, std::streamsize bufSz )
		: streambuf( m, bufSz ), _path( path.full_path() )
{
	stash_uri( path.pretty() );
	initFD( m );
}
Пример #5
0
 void operator () (uri &uri_) const {
     std::string encoded_path;
     encode(path, std::back_inserter(encoded_path));
     uri_.append(encoded_path);
 }
Пример #6
0
 void swap(uri &other) {
   boost::swap(uri_, other.uri_);
   other.parse();
   boost::swap(is_valid_, other.is_valid_);
 }