[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New routine in the development version : Tokenize()


Le 04/10/2025 à 11:02, Salva a écrit :
Hi,

I've attached the program with my tests, although it only uses Tokenize twice:
First, it tokenizes the SVG tags:
   - Tokenize(Data, " /+", ["<>", ""><"])
Then it tokenizes each token:
   - Tokenize(Data, "-:_", [" ", " =", "\""])

I needed several tests; Tokenize is sensitive to non-alphanumeric characters. As I mentioned, it reduces coding, although it is necessary to test until you find the right parameters.

The program includes SVG files from different sources and sizes for testing. you select the svg file and that's it.
It also has zero error handling...

Have a nice day.


Your second use of 'Tokenize()' is a bit of an hack, but it fulfills your need, no problem. :-)

--
Benoît Minisini.


References:
New routine in the development version : Tokenize()Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New routine in the development version : Tokenize()Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New routine in the development version : Tokenize()Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New routine in the development version : Tokenize()BB <adamnt42@xxxxxxxxx>
Re: New routine in the development version : Tokenize()Salva <harpomix@xxxxxxxxx>