WebSocket++
0.8.3-dev
C++ websocket client/server library
|
A group of helper methods for parsing and validating URIs against RFC 3986. More...
Functions | |
bool | unreserved (char c) |
RFC3986 unreserved character test. More... | |
bool | gen_delim (char c) |
RFC3986 generic delimiter character test. More... | |
bool | sub_delim (char c) |
RFC3986 subcomponent delimiter character test. More... | |
bool | hexdigit (char c) |
RFC3986 hex digit character test. More... | |
bool | scheme (char c) |
RFC3986 scheme character test. More... | |
bool | digit (char c) |
RFC3986 digit character test. More... | |
bool | digit (std::string::const_iterator it) |
RFC3986 digit character test (iterator version) More... | |
bool | pct_encoded (std::string::const_iterator it) |
RFC3986 per cent encoded character test. More... | |
bool | dec_octet (std::string::const_iterator start, std::string::const_iterator end) |
Tests a range for a valid IPv4 decimal octet. More... | |
bool | ipv4_literal (std::string::const_iterator start, std::string::const_iterator end) |
Tests a range for a valid IPv4 literal. More... | |
bool | hex4 (std::string::const_iterator start, std::string::const_iterator end) |
Tests a range for a valid IPv6 hex quad. More... | |
bool | ipv6_literal (std::string::const_iterator start, std::string::const_iterator end) |
Tests a range for a valid IPv6 literal. More... | |
bool | reg_name (char c) |
Tests a character for validity for a registry name. More... | |
bool | reg_name (std::string::const_iterator start, std::string::const_iterator end) |
Tests a range for validity for a registry name. More... | |
A group of helper methods for parsing and validating URIs against RFC 3986.
|
inline |
Tests a range for a valid IPv4 decimal octet.
start | An iterator to the first character of the range to check (inclusive) |
start | An iterator to the last character of the range to check (exclusive) |
|
inline |
|
inline |
|
inline |
|
inline |
Tests a range for a valid IPv6 hex quad.
start | An iterator to the first character of the range to check (inclusive) |
start | An iterator to the last character of the range to check (exclusive) |
|
inline |
|
inline |
Tests a range for a valid IPv4 literal.
start | An iterator to the first character of the range to check (inclusive) |
start | An iterator to the last character of the range to check (exclusive) |
|
inline |
Tests a range for a valid IPv6 literal.
start | An iterator to the first character of the range to check (inclusive) |
start | An iterator to the last character of the range to check (exclusive) |
|
inline |
RFC3986 per cent encoded character test.
caller must range check (only caller knows the actual range) caller must check for leading %
it | An iterator to the first character after the % sign |
|
inline |
Tests a character for validity for a registry name.
will fail on %, which is valid, but only when used as a part of a multiple character escape sequence. Since this test checks a single character it can't tell whether a % character is valid so it returns false. The caller needs to catch and handle s in another way.
c | The character to test |
|
inline |
Tests a range for validity for a registry name.
start | An iterator to the first character of the range to check (inclusive) |
start | An iterator to the last character of the range to check (exclusive) |
|
inline |
|
inline |