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 | GHA CI | 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
license | BSL-1.0 |
---|---|
project | boost |
url | github.com/boostorg/tokenizer |
doc-url | www.boost.org/doc/libs/1_85_0/libs/tokenizer |
boost-users@lists.boost.orgMailing list | |
topics | C++Boost |
5 Versions
version | 1.85.0 |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 5; libboost-assert, libboost-config, libboost-iterator, libboost-throw-exception, libboost-type-traits |
reviews | +1 |
version | 1.83.0 |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 5; libboost-assert, libboost-config, libboost-iterator, libboost-throw-exception, libboost-type-traits |
reviews | +1 |
version | 1.81.0+1 |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 5; libboost-assert, libboost-config, libboost-iterator, libboost-throw-exception, libboost-type-traits |
reviews | +1 |
version | 1.78.0 |
---|---|
repository | https://pkg.cppget.org/1/legacy |
depends | 6; libboost-assert, libboost-config, libboost-iterator, libboost-mpl, libboost-throw-exception, libboost-type-traits |
reviews | +1 |
version | 1.77.0+1 |
---|---|
repository | https://pkg.cppget.org/1/legacy |
depends | 6; libboost-assert, libboost-config, libboost-iterator, libboost-mpl, libboost-throw-exception, libboost-type-traits |
reviews | +1 |