KoolMoves Rocks!
Very fast split string to array function
Nice work Wilbert! On your speed test I got 0ms and 10ms, very fast indeed.
KoolMoves Rocks!
KoolMoves Rocks!
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
hey nog een nederlander...
although i'm not much into using libs, this one may come in handy
although i'm not much into using libs, this one may come in handy
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Hi Joe, You are right...
KoolMoves / EazyFlash (japanese version) / Freestyle Flash (dutch version)
Rocks
En inderdaad blueznl... nog een nederlander. Je komt ze ook overal tegen he
About arrays...
I also want to do some array push / pop functions if they won't appear in PB 4.0. I think it would be great if you could split a string into an array and pop off items until the array is empty.
KoolMoves / EazyFlash (japanese version) / Freestyle Flash (dutch version)
Rocks
En inderdaad blueznl... nog een nederlander. Je komt ze ook overal tegen he
About arrays...
I also want to do some array push / pop functions if they won't appear in PB 4.0. I think it would be great if you could split a string into an array and pop off items until the array is empty.
intelligence knows no borders 
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
There is an error in your routine : see ->
Code: Select all
Dim arrValuelist.s(0)
sz.s="10:20,10,50,10,90"
For i = 0 To 9
Select i
Case 0
sz.s="11111111111111111111111111111"
Case 1
sz.s="10,111"
Case 2
sz.s="101,111"
Case 3
sz.s="1010,111"
Case 4
sz.s="10101"
Case 5
sz.s="1010"
Case 6
sz.s="101"
Case 7
sz.s="10"
Case 8
sz.s="1"
Case 9
sz.s="11111111"
EndSelect
arrValuelist() = wb_SplitStringByChar(sz, ",", #True, arrValuelist())
NrOfValues = wb_ArrayCount(arrValuelist())
Debug arrValuelist(0)
NextHet werkt wel als je steeds een seperator vermeldt (in dit geval een comma)
Code: Select all
Dim arrValuelist.s(0)
sz.s="10:20,10,50,10,90"
For i = 0 To 9
Select i
Case 0
sz.s="11111111111111111111111111111"
Case 1
sz.s="10,111" + ","
Case 2
sz.s="101,111" + ","
Case 3
sz.s="1010,111" + ","
Case 4
sz.s="10101" + ","
Case 5
sz.s="1010" + ","
Case 6
sz.s="101" + ","
Case 7
sz.s="10" + ","
Case 8
sz.s="1" + ","
Case 9
sz.s="11111111"
EndSelect
arrValuelist() = wb_SplitStringByChar(sz, ",", #False, arrValuelist())
NrOfValues = wb_ArrayCount(arrValuelist())
Debug arrValuelist(0)
NextRe: Very fast split string to array function
Hi Wilbert,
I was looking for a fast split string to array function and found this topic.
I know it's a pretty old one
but I can't get your zip. I guess there should be some code updates since 2004...
Do you have a Purebasic 6 compatible version of this code ?
Thanks for your time.
I was looking for a fast split string to array function and found this topic.
I know it's a pretty old one
Do you have a Purebasic 6 compatible version of this code ?
Thanks for your time.
Windows 10 Pro x64
PureBasic 6.20 x64
PureBasic 6.20 x64
Re: Very fast split string to array function
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Very fast split string to array function
You can still down;oad ittatanas wrote: Fri Dec 15, 2023 11:22 am I know it's a pretty old onebut I can't get your zip. I guess there should be some code updates since 2004...
https://w73.nl/pb/split.zip
but it's not a code source but a user library.
I don't even know if I still have the original source code and if it still works it would be only for the 32 bit x86 version of PB
So maybe the alternative mk-soft created is a better solution for PB 6.x .
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Very fast split string to array function
https://www.purebasic.fr/english/viewto ... 82#p486382tatanas wrote: Fri Dec 15, 2023 11:22 am Do you have a Purebasic 6 compatible version of this code ?
https://www.purebasic.fr/english/viewtopic.php?t=80656
Re: Very fast split string to array function
Thank you very much. I've got everything I need.
Windows 10 Pro x64
PureBasic 6.20 x64
PureBasic 6.20 x64



