Revert 255397 "Fill out the rest of the StringPiece functions fo..."

> Fill out the rest of the StringPiece functions for 16-bit.
> 
> I was originally opposed to these since we didn't need them and they were complicated. But I'm wanting to use some of these functions in a different patch, so it seems like a good time to fill out the std::string-like finding functions for StringPiece16.
> 
> This deletes the old StringPieceDetails for which the only point was to share the common stuff between the two BasicStringPiece specializations.
> 
> I used the pattern of having two versions of each function declared in the header and then expanding the template in the .cc file, to avoid template bloat in the header.
> 
> This replaces all of the size_type goop with size_t. Chrome code assumes these are the same and we encourage people to just use size_t in loops, for example, rather than using the size_type of the template they're iterating over. This makes the code more readable in many places. It also solves a problem with declaration ordering since most of the functions that used size_type are now moved above where the size_type is actually declared.
> 
> R=viettrungluu@chromium.org
> TBR=akalin, ben
> 
> Review URL: https://codereview.chromium.org/187793004

TBR=brettw@chromium.org

Review URL: https://codereview.chromium.org/189793002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255492 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 50bc27c6e906bcad796a4f47ad6f36951cef06a3
3 files changed
tree: 55d68240e33120e56d846a0042ff7d38a5cb5fe6
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/