blob: a6e61d6d0ff2d66f545a8cd3a6b8b9910945dfec [file] [log] [blame]
Steven Morelandaf440142016-09-07 10:09:11 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef STRING_HELPER_H_
18
19#define STRING_HELPER_H_
20
21#include <string>
22#include <android-base/macros.h>
23#include <vector>
24
25namespace android {
26
27struct StringHelper {
28
29 static std::string Upcase(const std::string &in);
30
31 static void SplitString(
32 const std::string &s,
33 char c,
34 std::vector<std::string> *components);
35
36 static std::string JoinStrings(
37 const std::vector<std::string> &components,
38 const std::string &separator);
39
40private:
41 StringHelper() {}
42
43 DISALLOW_COPY_AND_ASSIGN(StringHelper);
44};
45
46} // namespace android
47
48#endif // STRING_HELPER_H_
49