Upa URL C++ library
A WHATWG URL Standard implementation
Loading...
Searching...
No Matches
url_percent_encode.h File Reference
#include "config.h"
#include "str_arg.h"
#include "url_utf.h"
#include "util.h"
#include <array>
#include <cstdint>
#include <initializer_list>
#include <string>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  upa::code_point_set
 Represents code point set. More...

Namespaces

namespace  upa

Functions

template<class StrT, enable_if_str_arg_t< StrT > = 0>
std::string upa::percent_decode (StrT &&str)
 Percent decode input string.
template<class StrT, enable_if_str_arg_t< StrT > = 0>
std::string upa::percent_encode (StrT &&str, const code_point_set &no_encode_set)
 UTF-8 percent encode input string using specified percent encode set.
template<class StrT, enable_if_str_arg_t< StrT > = 0>
std::string upa::encode_url_component (StrT &&str)
 UTF-8 percent encode input string using component percent encode set.

Variables

constexpr code_point_set upa::fragment_no_encode_set
constexpr code_point_set upa::query_no_encode_set
constexpr code_point_set upa::special_query_no_encode_set
constexpr code_point_set upa::path_no_encode_set
constexpr code_point_set upa::raw_path_no_encode_set
constexpr code_point_set upa::posix_path_no_encode_set
constexpr code_point_set upa::userinfo_no_encode_set
constexpr code_point_set upa::component_no_encode_set