diff options
Diffstat (limited to 'tools/streaming_proto/string_utils.h')
-rw-r--r-- | tools/streaming_proto/string_utils.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/streaming_proto/string_utils.h b/tools/streaming_proto/string_utils.h index ffe83ca99704..03284d16e1be 100644 --- a/tools/streaming_proto/string_utils.h +++ b/tools/streaming_proto/string_utils.h @@ -1,7 +1,8 @@ #include <string> +#include <vector> namespace android { -namespace javastream_proto { +namespace stream_proto { using namespace std; @@ -26,7 +27,11 @@ string file_base_name(const string& str); */ string replace_string(const string& str, const char replace, const char with); +/** + * Split a string to parts by delimiter. + */ +vector<string> split(const string& str, const char delimiter); -} // namespace javastream_proto +} // namespace stream_proto } // namespace android |