Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: base/strings/string_split.h

Issue 16320009: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/strings/string_piece_unittest.cc ('k') | base/strings/string_split.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_STRINGS_STRING_SPLIT_H_ 5 #ifndef BASE_STRINGS_STRING_SPLIT_H_
6 #define BASE_STRINGS_STRING_SPLIT_H_ 6 #define BASE_STRINGS_STRING_SPLIT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 #include "base/string16.h" 13 #include "base/strings/string16.h"
14 14
15 namespace base { 15 namespace base {
16 16
17 // Splits |str| into a vector of strings delimited by |s|, placing the results 17 // Splits |str| into a vector of strings delimited by |s|, placing the results
18 // in |r|. If several instances of |s| are contiguous, or if |str| begins with 18 // in |r|. If several instances of |s| are contiguous, or if |str| begins with
19 // or ends with |s|, then an empty string is inserted. 19 // or ends with |s|, then an empty string is inserted.
20 // 20 //
21 // Every substring is trimmed of any leading or trailing white space. 21 // Every substring is trimmed of any leading or trailing white space.
22 // NOTE: |c| must be in BMP (Basic Multilingual Plane) 22 // NOTE: |c| must be in BMP (Basic Multilingual Plane)
23 BASE_EXPORT void SplitString(const string16& str, 23 BASE_EXPORT void SplitString(const string16& str,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // characters defined by HTML 5). Each contiguous block of non-whitespace 72 // characters defined by HTML 5). Each contiguous block of non-whitespace
73 // characters is added to result. 73 // characters is added to result.
74 BASE_EXPORT void SplitStringAlongWhitespace(const string16& str, 74 BASE_EXPORT void SplitStringAlongWhitespace(const string16& str,
75 std::vector<string16>* result); 75 std::vector<string16>* result);
76 BASE_EXPORT void SplitStringAlongWhitespace(const std::string& str, 76 BASE_EXPORT void SplitStringAlongWhitespace(const std::string& str,
77 std::vector<std::string>* result); 77 std::vector<std::string>* result);
78 78
79 } // namespace base 79 } // namespace base
80 80
81 #endif // BASE_STRINGS_STRING_SPLIT_H_ 81 #endif // BASE_STRINGS_STRING_SPLIT_H_
OLDNEW
« no previous file with comments | « base/strings/string_piece_unittest.cc ('k') | base/strings/string_split.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698