From dda16735b94661b798d6c0fd3e41af944de0a1fe Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 13 10月 2019 15:02:19 +0800 Subject: [PATCH] refactoring - locators --- src/library/base/StringUtils.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/library/base/StringUtils.h b/src/library/base/StringUtils.h index bbb9ce3..a52376d 100644 --- a/src/library/base/StringUtils.h +++ b/src/library/base/StringUtils.h @@ -8,6 +8,7 @@ #ifndef STRINGUTILS_H_ #define STRINGUTILS_H_ #include <string> +#include <vector> namespace license { using namespace std; @@ -23,6 +24,13 @@ string toupper_copy(const string& lowercase); time_t seconds_from_epoch(const char* s); -} /* namespace license */ + +/** + * Split a string on a given character + */ +const vector<string> split_string(const string& licensePositions, const char splitchar); +} + +/* namespace license */ #endif /* STRINGUTILS_H_ */ -- Gitblit v1.9.1