11 #ifndef TLX_STRING_SPLIT_HEADER 12 #define TLX_STRING_SPLIT_HEADER 37 std::vector<std::string>
split(
38 char sep,
const std::string& str,
39 std::string::size_type limit = std::string::npos);
51 std::vector<std::string>
split(
52 const char* sep,
const std::string& str,
53 std::string::size_type limit = std::string::npos);
65 std::vector<std::string>
split(
66 const std::string& sep,
const std::string& str,
67 std::string::size_type limit = std::string::npos);
84 std::vector<std::string>
split(
85 char sep,
const std::string& str,
86 std::string::size_type min_fields, std::string::size_type limit);
100 std::vector<std::string>
split(
101 const char* sep,
const std::string& str,
102 std::string::size_type min_fields, std::string::size_type limit);
116 std::vector<std::string>
split(
117 const std::string& sep,
const std::string& str,
118 std::string::size_type min_fields, std::string::size_type limit);
134 std::vector<std::string>&
split(
135 std::vector<std::string>* into,
136 char sep,
const std::string& str,
137 std::string::size_type limit = std::string::npos);
150 std::vector<std::string>&
split(
151 std::vector<std::string>* into,
152 const char* sep,
const std::string& str,
153 std::string::size_type limit = std::string::npos);
166 std::vector<std::string>&
split(
167 std::vector<std::string>* into,
168 const std::string& sep,
const std::string& str,
169 std::string::size_type limit = std::string::npos);
187 std::vector<std::string>&
split(
188 std::vector<std::string>* into,
189 char sep,
const std::string& str,
190 std::string::size_type min_fields, std::string::size_type limit);
205 std::vector<std::string>&
split(
206 std::vector<std::string>* into,
207 const char* sep,
const std::string& str,
208 std::string::size_type min_fields, std::string::size_type limit);
223 std::vector<std::string>&
split(
224 std::vector<std::string>* into,
225 const std::string& sep,
const std::string& str,
226 std::string::size_type min_fields, std::string::size_type limit);
233 #endif // !TLX_STRING_SPLIT_HEADER
std::vector< std::string > split(char sep, const std::string &str, std::string::size_type limit)
Split the given string at each separator character into distinct substrings.