Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

CProgrammer

question concerning std::getline

This topic is 5458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a function that does what std::getline does, but takes more than one delimiter? I want it to stop after line breaks and spaces: '' '' ^ ''\n'' -CProgrammer

Share this post


Link to post
Share on other sites
Advertisement
I had the same problem a while back with ignoring comments behind '';''s in script files, it ended up I had to write my own function.

Share this post


Link to post
Share on other sites
I can easily write my own String tokenizer in C but im trying to cut back on code and stick to C++.
magmai: Is boost::tokenizer a part of stl or what exactly are you refering to.
Extrarius: extraction operator? Coiuld you be more precise, perhaps an example.
Thanks
-CProgrammer

Share this post


Link to post
Share on other sites
quote:
Original post by CProgrammer
I can easily write my own String tokenizer in C but im trying to cut back on code and stick to C++.
magmai: Is boost::tokenizer a part of stl or what exactly are you refering to.
Extrarius: extraction operator? Coiuld you be more precise, perhaps an example.
Thanks
-CProgrammer


boost::tokenizer is part of Boost.

See link in sig.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!