40 if (
offset == string::npos) {
55 if (
offset == string::npos) {
75 if (
ignore && last == first) {
77 last =
s.find_first_of(token, ++first);
79 if (last == string::npos) {
80 if (first !=
s.size())
81 v.push_back(
s.substr(first));
86 while (last != string::npos) {
87 v.push_back(
s.substr(first, last - first));
90 first =
s.find_first_not_of(token, last + 1);
92 if (first == string::npos)
97 last =
s.find_first_of(token, first);
100 v.push_back(
s.substr(first));