X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FString.h;h=6889476bd87069aff07f95072cc3ab1150f761b1;hb=b83985c4d53ecdd1cfd876ef52236d5aa3f512c4;hp=4262a9d1b4c88e630c873d5b855b1ec198e38c6c;hpb=d84e6482135417bafed3dea69c29b8d8b8c39970;p=folly.git diff --git a/folly/String.h b/folly/String.h index 4262a9d1..6889476b 100644 --- a/folly/String.h +++ b/folly/String.h @@ -211,12 +211,15 @@ std::string& stringVAppendf(std::string* out, const char* format, va_list ap); * C++, use cEscape instead. This function is for display purposes * only. */ -template -void backslashify(const String1& input, String2& output, bool hex_style=false); +template +void backslashify( + folly::StringPiece input, + OutputString& output, + bool hex_style = false); -template -String backslashify(const String& input, bool hex_style=false) { - String output; +template +OutputString backslashify(StringPiece input, bool hex_style = false) { + OutputString output; backslashify(input, output, hex_style); return output; } @@ -618,7 +621,7 @@ std::string stripLeftMargin(std::string s); * Leaves all other characters unchanged, including those with the 0x80 * bit set. * @param str String to convert - * @param len Length of str, in bytes + * @param length Length of str, in bytes */ void toLowerAscii(char* str, size_t length);