2
3
6
7
8
9
10
14#include <restinio/utils/percent_encoding.hpp>
16#include <restinio/string_view.hpp>
33
34
35
36
37
38
39
40
41
42
43
44
52
53
54
55
56
57
58
59
60
61
63 :
m_size{ restinio::utils::uri_normalization::
64 unreserved_chars::estimate_required_capacity( original_path ) }
66 m_data.reset(
new char[ m_size ] );
68 if(
m_size != original_path.size() )
75 original_path.begin(), original_path.end(),
81
82
83
88 return { m_data.get(), m_size };
93
94
95
96
101 return std::move(m_data);
107
108
109
Helper class for holding a unique instance of char array with target_path value.
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.
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.
void normalize_to(string_view_t what, char *dest)
Perform normalization of URI value.