Jamie Madill | 8c5aeb6 | 2015-05-21 08:17:18 -0400 | [diff] [blame^] | 1 | // |
| 2 | // Copyright 2015 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | // string_utils: |
| 7 | // String helper functions. |
| 8 | // |
| 9 | |
| 10 | #ifndef LIBANGLE_STRING_UTILS_H_ |
| 11 | #define LIBANGLE_STRING_UTILS_H_ |
| 12 | |
| 13 | #include <string> |
| 14 | #include <vector> |
| 15 | |
| 16 | namespace angle |
| 17 | { |
| 18 | |
| 19 | void SplitString(const std::string &input, |
| 20 | char delimiter, |
| 21 | std::vector<std::string> *tokensOut); |
| 22 | |
| 23 | void SplitStringAlongWhitespace(const std::string &input, |
| 24 | std::vector<std::string> *tokensOut); |
| 25 | |
| 26 | bool HexStringToUInt(const std::string &input, unsigned int *uintOut); |
| 27 | |
| 28 | bool ReadFileToString(const std::string &path, std::string *stringOut); |
| 29 | |
| 30 | } |
| 31 | |
| 32 | #endif // LIBANGLE_STRING_UTILS_H_ |