group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
ServerName.hpp File Reference

Shared server-name validation helpers. More...

#include <cstddef>
#include <string>
#include <string_view>
Include dependency graph for ServerName.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  server_name

Functions

std::string server_name::clampUtf8Bytes (std::string_view value)
std::string server_name::sanitize (std::string_view value, std::string_view fallback=k_default)

Variables

constexpr std::size_t server_name::k_maxBytes = 32
constexpr std::string_view server_name::k_default = "Server"

Detailed Description

Shared server-name validation helpers.