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.78.0 |
|---|---|
| license | BSL-1.0Boost Software License 1.0 |
| repository | https://pkg.cppget.org/1/legacy |
| download | libboost-tokenizer-1.78.0.tar.gz |
| sha256 | bfcf37ae8b359588896b69552fc3f4a1dc5e8f32e679af87353bbe83f74a9ffb |
| project | boost |
|---|---|
| url | github.com/boostorg/tokenizer |
| doc-url | www.boost.org/doc/libs/1_78_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.78.0 | |
| libboost-config == 1.78.0 | |
| libboost-iterator == 1.78.0 | |
| libboost-mpl == 1.78.0 | |
| libboost-throw-exception == 1.78.0 | |
| libboost-type-traits == 1.78.0 |
Reviews
| fail | 0 |
|---|---|
| pass | 1 |