to!()() & leading/trailing whitespace

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Aug 16 18:53:46 PDT 2010


Jonathan M Davis wrote:
> On Monday, August 16, 2010 16:49:45 bearophile wrote:
>> Jonathan M Davis:
>>> A string with whitespace is _not_ a number.
>> I will not agree with this this (I am talking about leading/trailing
>> whitespace only). Regarding the other things you say, I have already given
>> answers to them.
>>
>> Bye,
>> bearophile
> 
> Well, while it may not be what you want, writing a wrapper which calls strip() 
> would be easy to do.

It's more complicated than that. readf works with arbitrary input 
streams, so there would be need for a skipWhitespace() routine.

Andrei


More information about the Digitalmars-d mailing list