1 // Copyright 2016 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROMIUMOS_WIDE_PROFILING_STRING_UTILS_H_ 6 #define CHROMIUMOS_WIDE_PROFILING_STRING_UTILS_H_ 7 8 #include <vector> 9 10 #include "compat/string.h" 11 12 namespace quipper { 13 14 // Trim leading and trailing whitespace from |str|. 15 void TrimWhitespace(string* str); 16 17 // Splits a character array by |delimiter| into a vector of strings tokens. 18 void SplitString(const string& str, char delimiter, 19 std::vector<string>* tokens); 20 21 } // namespace quipper 22 23 #endif // CHROMIUMOS_WIDE_PROFILING_STRING_UTILS_H_ 24