|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Functions | |
| int | HexDigit (char one) |
The value 0-15 of a hex digit, either case, or -1 if one is not one. | |
| std::string | Decode (std::string_view value, bool plus_is_space=false) |
Percent-decodes value, leaving anything malformed as it stands. | |
| absl::StatusOr< std::string > | DecodeStrict (std::string_view value, std::string_view what) |
Percent-decodes value, or says why it cannot be decoded. | |
| std::string | Encode (std::string_view value) |
| Percent-encodes everything outside RFC 3986's unreserved set. | |
|
inline |
Percent-decodes value, leaving anything malformed as it stands.
Malformed percent escapes remain unchanged.
| value | Text to decode. |
| plus_is_space | Map + to a space, as application/x-www-form-urlencoded does. Off for a URL path or a baggage value, where + is literal. |
|
inline |
Percent-decodes value, or says why it cannot be decoded.
Returns an error for malformed escapes, including in credential URLs.
| value | Text to decode. |
| what | Names the input in the error, e.g. "Redis URL". |
|
inline |
Percent-encodes everything outside RFC 3986's unreserved set.
|
inline |
The value 0-15 of a hex digit, either case, or -1 if one is not one.