Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,291 of 33,346    |
|    Greg Marr to K. Frank    |
|    Re: Efficiently splitting strings -- sub    |
|    27 Feb 14 15:45:50    |
      From: gregmmarr@googlemail.com              On Thursday, February 27, 2014 9:01:32 AM UTC-5, K. Frank wrote:       > Is there any standard practice for efficiently       > splitting strings into tokens (and then further       > processing those tokens)?       >       > Significant efficiency could be gained by doing much       > of this processing in place in the original string.       >       > Is there any standard practice or good approaches       > for doing this?       >       > (I seem, for example, to recall some language that       > had some kind of substring or subarray facility for       > encapsulating the indexing into the original data       > object to avoid unnecessary copying.)              This is one of the primary motivations for the string_view       proposal that was accepted earlier this month into the       Library Fundamentals TS for inclusion in a future C++ standard.              http://isocpp.org/blog/2014/02/n3921                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca