Upa URL C++ library
A WHATWG URL Standard implementation
Loading...
Searching...
No Matches
url_host.h File Reference
#include "buffer.h"
#include "config.h"
#include "idna.h"
#include "str_arg.h"
#include "url_ip.h"
#include "url_percent_encode.h"
#include "url_result.h"
#include "url_utf.h"
#include "util.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <string>
#include <string_view>
#include <type_traits>

Go to the source code of this file.

Classes

class  upa::url_host

Namespaces

namespace  upa

Enumerations

enum class  upa::HostType {
  upa::Empty = 0 , upa::Opaque , upa::Domain , upa::IPv4 ,
  upa::IPv6
}
 Host representation. More...

Functions

template<class StrT, enable_if_str_arg_t< StrT > = 0>
validation_errc upa::domain_parser (std::string &output, const StrT &input, bool be_strict)
 Implements the domain parser algorithm.
template<class CharT, class StrT, enable_if_str_arg_t< StrT > = 0>
bool upa::domain_to_unicode (std::basic_string< CharT > &output, const StrT &input, bool be_strict=false, bool is_input_ascii=false)
 Implements the domain to Unicode algorithm.