Print String percent‐encoded for a URL query component (RFC 3986).
Synopsis
Declared in <llvm/ADT/StringExtras.h>
void
printPercentEncoded(
StringRef String,
raw_ostream& Out);
Description
Unreserved characters (ALPHA, DIGIT, '‐' '_' '.' '~') are written directly; every other byte becomes an uppercase %XX escape. Operates on raw bytes, so UTF‐8 round‐trips.
Parameters
Name |
Description |
String |
bytes to encode |
Out |
stream to write to |
Created with MrDocs