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

Side by Side Diff: base/string_split.h

Issue 464075: Move two generic string split functions from sync API to their own API in base/string_split. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: added .gypi Created 11 years 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/base.gypi ('k') | base/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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_STRING_SPLIT_H_
6 #define BASE_STRING_SPLIT_H_
7
8 #include <string>
9 #include <utility>
10 #include <vector>
11
12 namespace base {
13
14 bool SplitStringIntoKeyValues(
15 const std::string& line,
16 char key_value_delimiter,
17 std::string* key, std::vector<std::string>* values);
18
19 bool SplitStringIntoKeyValuePairs(
20 const std::string& line,
21 char key_value_delimiter,
22 char key_value_pair_delimiter,
23 std::vector<std::pair<std::string, std::string> >* kv_pairs);
24
25 } // namespace base
26
27 #endif // BASE_STRING_SPLIT_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/string_split.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698