14 #include <restinio/utils/percent_encoding.hpp> 16 #include <restinio/string_view.hpp> 66 m_data.reset(
new char[ m_size ] );
68 if( m_size != original_path.size() )
70 restinio::utils::uri_normalization::unreserved_chars::
71 normalize_to( original_path, m_data.get() );
75 original_path.begin(), original_path.end(),
88 return { m_data.get(), m_size };
101 return std::move(m_data);
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.
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, std::optional< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in std::optional<Value_Type> if parameter exis...
data_t giveout_data() noexcept
Give out the value from holder.
string_view_t view() const noexcept
Get access to the value of target_path.
Helper class for holding a unique instance of char array with target_path value.