12 #ifndef ROC_ADDRESS_PCT_H_
13 #define ROC_ADDRESS_PCT_H_
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
ROC_ATTR_NODISCARD bool pct_encode(core::StringBuilder &dst, const char *src, size_t src_sz, PctMode mode)
Percent-encode an UTF-8 string.
ROC_ATTR_NODISCARD bool pct_decode(core::StringBuilder &dst, const char *src, size_t src_sz)
Percent-decode an UTF-8 string.
PctMode
Percent-encoding mode.
@ PctNonPath
Percent-encode all symbols that are not allowed in path.
@ PctNonUnreserved
Percent-encode all symbols that are not unreserved.
@ PctNonHost
Percent-encode all symbols that are not allowed in host.
Commonly used types and functions.