Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tokenize?

Status
Not open for further replies.

jstreich

Programmer
Apr 20, 2002
1,067
US
Is there a function in the C++ String or algorithm Library that works like the JAVA tokenize() function? I will probably end up writting it anyway, but just thought the STL or other standard C/C++ Libraries should.
 
In C, there is strtok and strtok_r. The latter is thread safe. I haven't had a need to use tokenization in C++ yet.
 
Boost ( has a tokenization library. A lot of their stuff gets presented to the Standards Committee (since a lot of the people with Boost are actually in the Standards Committee). So only the stuff xwb mentioned is Statndard right now, but Boost's stuff is a likely candidate.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top