| // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROMEOS_STRING_H_ |
| #define CHROMEOS_STRING_H_ |
| |
| #include <string> |
| #include <vector> |
| |
| namespace chromeos { |
| |
| void SplitString(const std::string& str, std::vector<std::string>* parts); |
| |
| void SplitStringUsing(const std::string& str, |
| const std::string& delim, |
| std::vector<std::string>* parts); |
| |
| // Copies the string. Use delete (not delete [] or free) to release the returned |
| // string. |
| char* NewStringCopy(const char* x); |
| |
| } // namespace chromeos |
| |
| #endif /* CHROMEOS_STRING_H_ */ |
| |