Boost logo

Boost Users :

From: david bautista garcia (ibbg_at_[hidden])
Date: 2007-06-25 02:22:50


Hello:

somebody can say me that it makes this code, mainly the option :
sep (“: ”, "", boost:: keep_empty_tokens)

        typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
        boost::char_separator<char> sep(":", "", boost::keep_empty_tokens);
        tokenizer tokens(str, sep);
        tokenizer::iterator tok_iter = tokens.begin();
        //cout << "TOKEN " << (*tok_iter) << endl;

the input is:
BSIC=4-6,BCCHFREQ=784,SYSID=DCS1800,MSTXPMAXGSM=<NULL>,MSTXPMAXDCS=0,MSTXPMAXPCS=<NULL>,CELLGLID="214"-"03"-6004-1519,RACODE=137,RACOL=0,GRXLAMI=6,GMSTXPMAC=15;

What's de output?

Thanks

--------------------------------------------------------------------------------------------
¿Ya sabes con quién vas? ¿Héroe o Villano?
Prepárate para la batalla final en http://friki.ozu.es
--------------------------------------------------------------------------------------------
Correo enviado desde http://www.ozu.es


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net