Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emanuele schrieb: | Hi Paolo (and all), [...] | | I tried your snippet, but I receive an error every time I start the | macros. :-( | In particular the problem is located in the function RegExpStrReplace | at the line: | | .searchFlag = [EMAIL

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Paolo Mantovani
Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Ennio-Sr
* Paolo Mantovani [EMAIL PROTECTED] [190605, 16:41]: Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), [...] In particular the problem is located in the function RegExpStrReplace

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Emanuele
Not a good advice, because the XML code erroneously used from Emanuele contains also a lot of other offending code like escaped chars (apos, quot, # etc. etc.) In truth all the other things were ok, so I didn't realize immediately my error, excuse me! XML code-snippets are not conceived

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Paolo Mantovani
Hi Kohei, Alle 14:55, gioved 16 giugno 2005, Kohei Yoshida ha scritto: [...] Hi Paolo, You, or perhaps someone else, may be interested in this hack of mine: http://kohei.us/ooo/nsort/ which introduces a native natural sort algorithm in Calc. Great ! :-) The work was completed (with

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Mantovani schrieb: | Hi all, | | During a recent job I have had to develop some functions for string sorting. | Some of these contains a very simple implementation of the natural sort | algorithm. [...] Integrated into snippet collection and

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Paolo Mantovani
Hi Tom, Alle 10:35, venerd 17 giugno 2005, Tom Schindl ha scritto: [...] Integrated into snippet collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.SimpleNaturalSort Algorithm.snip Thank you :-) Paolo M.

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Emanuele
Hi Paolo (and all), Paolo Mantovani wrote: Finally, I thought to submit the thing as a code-snippet, in the hope it will be useful to someone. I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Ennio-Sr
* Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the line: .searchFlag = [EMAIL PROTECTED]

[api-dev] [code snippet] Simple natural sort algorithm

2005-06-15 Thread Paolo Mantovani
Hi all, During a recent job I have had to develop some functions for string sorting. Some of these contains a very simple implementation of the natural sort algorithm. This implementation uses the service css.util.TextSearch to perform special string comparisions. Although the code works well