[base] Use StringPiece for codepage conversion
The basic codepage converion functions in base, namely, CodepageToUTF16, CodepageToUTF16, and ConvertToUtf8AndNormalize are now taking StringPiece as the input type. This allows more flexibility when using theses interfaces, as well as providing the benefit of avoiding unnecessary string copies. Change-Id: I5922bd7cc3236f99fbac9393cba61afd9c475af3 Reviewed-on: https://chromium-review.googlesource.com/c/1349652 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by:Nico Weber <thakis@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#610877}
Showing
Please register or sign in to comment