summaryrefslogtreecommitdiff
path: root/utils/stringlib_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/stringlib_test.cc')
-rw-r--r--utils/stringlib_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/stringlib_test.cc b/utils/stringlib_test.cc
index f66cdbeb..00b31b4b 100644
--- a/utils/stringlib_test.cc
+++ b/utils/stringlib_test.cc
@@ -14,4 +14,8 @@ int main(int argc, char *argv[]) {
std::string const& w="verylongword";
VisitTokens(p,print());
VisitTokens(w,print());
+ vector<StringPiece> vsp = TokenizeMultisep("field 1 ||| field 2 is a bit longer ||| field 3", " ||| ");
+ for (auto& sp : vsp) {
+ cerr << "'" << sp << "'" << endl;
+ }
}