backslashify overloads
Declared in <folly/String.h>
Backslashify a string, returning the result.
template<class OutputString = std::string>
OutputString
backslashify(
StringPiece input,
bool hex_style = false);
» more...
Backslashify a string.
template<class OutputString>
void
backslashify(
folly::StringPiece input,
OutputString& output,
bool hex_style = false);
» more...
The backslashified string.
| Name | Description |
|---|---|
| input | The input string to backslashify. |
| hex_style | Whether to always use "xHH" instead of shorthand escapes. |
| output | The output string that the result is written to. |