48 using data_t = std::unique_ptr<char[]>;
68 if(
m_size != original_path.size() )
75 original_path.begin(), original_path.end(),
Helper class for holding a unique instance of char array with target_path value.
RESTINIO_NODISCARD string_view_t view() const noexcept
Get access to the value of target_path.
data_t m_data
Actual data with target_path.
target_path_holder_t(string_view_t original_path)
Initializing constructor.
std::size_t m_size
The length of target_path.
RESTINIO_NODISCARD data_t giveout_data() noexcept
Give out the value from holder.
std::unique_ptr< char[]> data_t
#define RESTINIO_NODISCARD
void normalize_to(string_view_t what, char *dest)
Perform normalization of URI value.
RESTINIO_NODISCARD std::size_t estimate_required_capacity(string_view_t what)
Calculate the size of a buffer to hold normalized value of a URI.
nonstd::string_view string_view_t