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

Side by Side Diff: src/common/chromeos/string.h

Issue 460001: Clean up to move NewStringCopy from util to chromoes/string. (Closed)
Patch Set: Removed pw file, changed include format 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
« no previous file with comments | « src/common/SConstruct ('k') | src/common/chromeos/string.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) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 CHROMEOS_STRING_H_ 5 #ifndef CHROMEOS_STRING_H_
6 #define CHROMEOS_STRING_H_ 6 #define CHROMEOS_STRING_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 void SplitString(const std::string& str, std::vector<std::string>* parts); 13 void SplitString(const std::string& str, std::vector<std::string>* parts);
14 14
15 void SplitStringUsing(const std::string& str, 15 void SplitStringUsing(const std::string& str,
16 const std::string& delim, 16 const std::string& delim,
17 std::vector<std::string>* parts); 17 std::vector<std::string>* parts);
18 18
19 // Copies the string. Use delete (not delete [] or free) to release the returned
20 // string.
21 char* NewStringCopy(const char* x);
22
19 } // namespace chromeos 23 } // namespace chromeos
20 24
21 #endif /* CHROMEOS_STRING_H_ */ 25 #endif /* CHROMEOS_STRING_H_ */
22 26
OLDNEW
« no previous file with comments | « src/common/SConstruct ('k') | src/common/chromeos/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698