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

2005-06-19 Thread Ennio-Sr
Hi Paolo, not to be polemic :-) * Paolo Mantovani <[EMAIL PROTECTED]> [190605, 19:28]: > Alle 18:00, domenica 19 giugno 2005, Ennio-Sr ha scritto: > [...] > > > > > > Not a good advice, > > > > Maybe the advice was not complete, yet good it was as it helped solve > > the OP's problem ;) > > ???G

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

2005-06-19 Thread Paolo Mantovani
Alle 18:00, domenica 19 giugno 2005, Ennio-Sr ha scritto: [...] > > > Hi Emanuele, > > > Erase _all_ the [EMAIL PROTECTED] and *}* and it goes on smoothly :-) > > > > Not a good advice, > > Maybe the advice was not complete, yet good it was as it helped solve > the OP's problem ;) “Give a man a f

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, ", &# 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 f

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 Paolo Mantovani
Hi Tom, Alle 08:57, domenica 19 giugno 2005, Tom Schindl ha scritto: [...] > Paolo it seems that the problem we are linking is a small bug in your > snippet creator your regexp adding the @see stuff seems to miss the "_". Yes, I see. Fixed The updated package is available here http://www.paolo-ma

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 "RegExpStrRepla

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

2005-06-19 Thread Paolo Mantovani
Alle 18:57, venerdì 17 giugno 2005, Emanuele ha scritto: > Hi Paolo (and all), [...] > I tried your snippet, but I receive an error every time I start the > macros. :-( [...] > Is it my fault? > Do you have any suggestions? yes: Do not use XML code-snippets directly in the Starbasic IDE next time

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

2005-06-18 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 PRO

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] com.sun.star

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 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 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 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

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

2005-06-16 Thread Kohei Yoshida
On 6/15/05, Paolo Mantovani <[EMAIL PROTECTED]> wrote: > 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 p

[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