blob: 78d1ec018d0b7d250ad5d08ba94889a3265f563f [file] [log] [blame]
Jamie Madill8c5aeb62015-05-21 08:17:18 -04001//
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
16namespace angle
17{
18
19void SplitString(const std::string &input,
20 char delimiter,
21 std::vector<std::string> *tokensOut);
22
23void SplitStringAlongWhitespace(const std::string &input,
24 std::vector<std::string> *tokensOut);
25
26bool HexStringToUInt(const std::string &input, unsigned int *uintOut);
27
28bool ReadFileToString(const std::string &path, std::string *stringOut);
29
30}
31
32#endif // LIBANGLE_STRING_UTILS_H_