diff options
author | Chris Dyer <redpony@gmail.com> | 2014-06-12 23:10:00 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-06-12 23:10:00 -0400 |
commit | 3955a9607cf0e9722eb8ae3f14d951081df9f820 (patch) | |
tree | e59145e6d456d1ba930aac300d72c35d76689a1e /utils/stringlib_test.cc | |
parent | 0e2f8d3d049f06afb08b4639c6a28aa5461cdc78 (diff) |
move string_piece to utils/ from inside klm
Diffstat (limited to 'utils/stringlib_test.cc')
-rw-r--r-- | utils/stringlib_test.cc | 4 |
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; + } } |