[/REALITY].
now it's
Code:
auto skip_whiteys=[]()->void
{while(text.at(pos).isSpace() && pos<len) ++pos;};
and will be:
Code:
auto skip_whiteys=[]
{while(text.at(pos).isSpace() && pos<len) ++pos;};
if all the compilers agree on it.
I have not checked yet if it works (should, theoretically, global, in context, variables should be available) , because I'm in the middle of rewrite and I even don't try to compile... so don't think it's final...
But, eventually, I'll time lambda versus WHITESPACE.contains(). Let the better man win.
I'm using
named lambdas to make code more readable.
Quote:
Originally Posted by KevinH
...(not 100% sure of this but it is close)...
|
Precisely that brought me to isSpace. I decided to trust the Qt guys: they did some real work about what the white space in QString is.
EDIT: no, those lambdas are no go...
I forgot..
tbc...?