diff options
Diffstat (limited to 'src/rl_str_proc.hh')
-rw-r--r-- | src/rl_str_proc.hh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/rl_str_proc.hh b/src/rl_str_proc.hh new file mode 100644 index 0000000..c59df0a --- /dev/null +++ b/src/rl_str_proc.hh @@ -0,0 +1,24 @@ +#ifndef __RL_STR_PROC_HH__ +#define __RL_STR_PROC_HH__ + +#include <vector> +#include <string> + +class StrProc +{ +public: + StrProc(const std::string &in, const std::string &token); + + std::string get(int i); + + std::string get(int start, int end); + + std::vector<std::string> get(); + + int size() {return _str_coll.size();} + +private: + std::vector<std::string> _str_coll; +}; + +#endif //__RL_STR_PROC_HH__ |