[fpc-pascal] How to split file of whitespace separated numbers?

Lars noreply at z505.com
Sat Dec 24 11:55:19 CET 2016

On Fri, December 23, 2016 4:49 am, Howard Page-Clark wrote:
> On 23/12/16 08:14, Bo Berglund wrote:
>> Is there a quick way to split a string of whitespace separated values
>> into the separate members?
> It is possible that a custom string parser (something along these lines)
> might improve your processing speed:
> type TDoubleArray = array of Double;
> function StrToDblArray(const aString: string): TDoubleArray;
> var c: Char;

And as soon as char is involved, unicode gets screwed up....

Am I right, am I right...

But if he is not dealing with any unicode data and it is all simple chars,
should be okay.

More information about the fpc-pascal mailing list