DescriptionMake UTF8ToWide take a StringPiece, to avoid copying to a std::string.
The previous prototype took only a std::string, unless you used the less convenient output parameter version. This required copying char* input to a std::string. Using a StringPiece the input will be implicitly both std::string and char* without any copying. This helps especially on Linux, where all input we get will be in utf8 char*.
Patch Set 1 #
Total comments: 1
Messages
Total messages: 2 (0 generated)
|