/usr/include/leatherman/util/uri.hpp is in libleatherman-dev 1.4.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | /**
* @file
* Declares tools for deconstructing URIs
*/
#pragma once
#include <string>
namespace leatherman { namespace util {
/**
* A class that parses a URI into its components.
* Does not support user_info, and doesn't break fragment out from query.
*/
struct uri
{
std::string protocol, host, port, path, query;
uri(std::string const&);
std::string str() const;
};
}} // namespace leatherman::util
|