diff options
author | brettw <brettw@chromium.org> | 2015-06-23 19:07:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-24 02:07:55 +0000 |
commit | 37fd9d7d258626d3a1bd6db9fc99c97f981c21b1 (patch) | |
tree | 0ae9b639f6b236915c166732d95ee4c0edd45c6f /base/strings | |
parent | a3c8aa067d8c1482a39cfdbe78106de21abe31b0 (diff) | |
download | chromium_src-37fd9d7d258626d3a1bd6db9fc99c97f981c21b1.zip chromium_src-37fd9d7d258626d3a1bd6db9fc99c97f981c21b1.tar.gz chromium_src-37fd9d7d258626d3a1bd6db9fc99c97f981c21b1.tar.bz2 |
Replace some Tokenize calls with SplitString.
Tokenize is now a legacy wrapper around a particular variant of SplitString call. I want to remove the Tokenize wrappers.
This patch uses the StringPiece version in obvious cases which saves allocations, and in many places removes the vector temporary in preferences to a range-based for loop.
Review URL: https://codereview.chromium.org/1197243004
Cr-Commit-Position: refs/heads/master@{#335856}
Diffstat (limited to 'base/strings')
-rw-r--r-- | base/strings/string_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/strings/string_util.h b/base/strings/string_util.h index f372d45..8b80868 100644 --- a/base/strings/string_util.h +++ b/base/strings/string_util.h @@ -491,7 +491,7 @@ inline typename string_type::value_type* WriteInto(string_type* str, // |delimiters|. Each field is added to the |tokens| vector. Returns the // number of tokens found. // -// DEPRECATED. Use SplitStringUsingSet for new code (these just forward). +// DEPRECATED. Use base::SplitString for new code (these just forward). // TODO(brettw) convert callers and delete these forwarders. BASE_EXPORT size_t Tokenize(const base::string16& str, const base::string16& delimiters, |