cartobase 6.0.6
stringutil.h
Go to the documentation of this file.
1#ifndef CARTOBASE_STREAM_STRINGUTIL_H
2#define CARTOBASE_STREAM_STRINGUTIL_H
3
4#include <string>
5#include <vector>
6
7namespace carto
8{
9 class Object;
10
13 {
14 public:
15 static std::vector<std::string>
16 split( const std::string & s, const std::string & split_pattern,
17 unsigned maxsplit=0 );
18 static std::vector<std::string>
19 split( const std::string & s,
20 const std::vector<std::string> & split_patterns,
21 unsigned maxsplit=0 );
22 static std::string join( const std::vector<std::string> & strings,
23 const std::string &join_by );
24 static std::string strip( const std::string & s,
25 const std::string & chars = " \n\t" );
26 };
27
28
29}
30
31#endif
32
String utilities.
Definition stringutil.h:13
static std::string join(const std::vector< std::string > &strings, const std::string &join_by)
static std::vector< std::string > split(const std::string &s, const std::string &split_pattern, unsigned maxsplit=0)
static std::string strip(const std::string &s, const std::string &chars=" \n\t")
static std::vector< std::string > split(const std::string &s, const std::vector< std::string > &split_patterns, unsigned maxsplit=0)