Seems that's a good idea.Anyhow... maybe when I get the competition site sorted we could have a regular... 'see who can do it fastest/smallest competition'... just a thought
Seems that's a good idea.Anyhow... maybe when I get the competition site sorted we could have a regular... 'see who can do it fastest/smallest competition'... just a thought
very goodOriginally Posted by Mirage
From brazil (:
Pascal pownz!
it must work in freepascal too, the code there uses variants and is "not lightweight enough".Originally Posted by AthenaOfDelphi
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
Then that sounds like a case of re-inventing the wheel... where the original is squareOriginally Posted by Delfi
Good luck with that when you get round to it.
:: AthenaOfDelphi :: My Blog :: My Software ::
Given the usefulness of this little session, I've added it to the library in a newly created code snippets section here
:: AthenaOfDelphi :: My Blog :: My Software ::
AthenaOfDelphi's and consequently Arthurps's code for some reason separate also by the "." character, which makes it impossible to parse floating point values (think "123.45" ) and also "0D0A" newlines which isnt neccesary but they dont parse the tab #09.
This is easy to fix tho just by removing extra IF condition.
Arthurps's code also doesnt parse properly if you use several separators to separate values (think grid space / tab aligned values): it produces empty values in the array.
So correct characters for separating should be:
(aChar = (' ')) or (aChar = (';')) or
(aChar = (',')) or (aChar = (#09))
I didn't test User137 and Brainer's code since they use classes.
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
I just banged in a bunch of separators without really thinking about it too much. I normally use things like INI files, type files or streamed classes for data storage... depends on the application.Originally Posted by Delfi
Of course, we perhaps shouldn't have included , either since that works as the decimal separator depending on location... just a thought
:: AthenaOfDelphi :: My Blog :: My Software ::
http://en.wikipedia.org/wiki/Decimal_separator
The list is faulty, i've been always taught to use decimal point and the list shows slovenia as using a decimal colon.. practically everyone uses decimal point these days.
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
yes "dot" should be removed, but it's very easy to modify the tokens separators "ifs"
From brazil (:
Pascal pownz!
That's true and i changed it, and after that Athena's code works but your code has another issue - i quote myself:Originally Posted by arthurprs
Arthurps's code also doesnt parse properly if you use several separators to separate values (think grid space / tab aligned values): it produces empty values in the array.
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
Bookmarks