Break of a string or other character sequence into a series of tokens
Boost.Tokenizer is a part of Boost C++ Libraries. The Boost.Tokenizer package provides a flexible and easy-to-use way to break a string or other character sequence into a series of tokens.
License
Distributed under the Boost Software License, Version 1.0.
Properties
- C++03
- Header-Only
Build Status
Branch | Travis | Appveyor | Coverity Scan | codecov.io | Deps | Docs | Tests |
---|---|---|---|---|---|---|---|
master |
|||||||
develop |
Overview
break up a phrase into words.
#include <iostream>
#include <boost/tokenizer.hpp>
#include <string>
int main(){
std::string s = "This is, a test";
typedef boost::tokenizer<> Tok;
Tok tok(s);
for (Tok::iterator beg = tok.begin(); beg != tok.end(); ++beg){
std::cout << *beg << "\n";
}
}
... More
version | 1.77.0+1 |
---|---|
license | BSL-1.0Boost Software License 1.0 |
repository | https://pkg.cppget.org/1/legacy |
download | libboost-tokenizer-1.77.0+1.tar.gz |
sha256 | cd3c28be9abae537fc15ba52cfa56ecb6bb65b692dbe65b62677e2faee3081a5 |
project | boost |
---|---|
url | github.com/boostorg/tokenizer |
doc-url | www.boost.org/doc/libs/1_77_0/libs/tokenizer |
package-url | github.com/build2-packaging/boost |
boost-users@lists.boost.orgMailing list | |
package-email | packaging@build2.orgMailing list |
topics | C++Boost |
Depends (6)
libboost-assert == 1.77.0 | |
libboost-config == 1.77.0 | |
libboost-iterator == 1.77.0 | |
libboost-mpl == 1.77.0 | |
libboost-throw-exception == 1.77.0 | |
libboost-type-traits == 1.77.0 |
Reviews
fail | 0 |
---|---|
pass | 1 |