[Ohrrpgce] SVN: teeemcee/11162 File browser now sorts filenames containing numbers numerically: f10.bmp

James Paige Bob at hamsterrepublic.com
Thu May 30 18:00:09 PDT 2019


I finally got a chance to test this, and here is what it prints:

123456789000         12345678900
 12            11

On Tue, May 21, 2019 at 8:59 AM James Paige <Bob at hamsterrepublic.com> wrote:

> Sure, I'll give it a try when I get a chance (probably won't be today)
>
> On Tue, May 21, 2019, 8:47 AM Ralph Versteegen <teeemcee at gmail.com> wrote:
>
>> Oh, add #include "crt.bi"
>>
>> On Wed, 22 May 2019 at 00:46, Ralph Versteegen <teeemcee at gmail.com>
>> wrote:
>>
>>> Strange! It passes for me. Could you try the following?
>>>
>>> DIM as zstring ptr s1 = @"123456789000", after1, s2 = @"12345678900",
>>> after2
>>> ? strtol(s1, @after1, 10), strtol(s2, @after2, 10)
>>> ? after1 - s1, after2 - s2
>>>
>>> On Tue, 21 May 2019 at 07:13, James Paige <Bob at hamsterrepublic.com>
>>> wrote:
>>>
>>>> This seems to fail when I run scons test
>>>>
>>>> Test #7: numeric_string_compare... FAIL (on line 1523 in util.bas)
>>>> scons: *** [test] Error 7
>>>> scons: building terminated because of errors.
>>>>
>>>>
>>>> On Sun, May 19, 2019 at 1:15 AM <subversion at hamsterrepublic.com> wrote:
>>>>
>>>>> teeemcee
>>>>> 2019-05-18 22:15:25 -0700 (Sat, 18 May 2019)
>>>>> 156
>>>>> File browser now sorts filenames containing numbers numerically:
>>>>> f10.bmp after f9.bmp
>>>>>
>>>>> Added numeric_string_compare for that.
>>>>> And cleaned up string_compare.
>>>>> ---
>>>>> U   wip/browse.bas
>>>>> U   wip/menustuf.rbas
>>>>> U   wip/util.bas
>>>>> U   wip/util.bi
>>>>> U   wip/vectortest.bas
>>>>> _______________________________________________
>>>>> Ohrrpgce mailing list
>>>>> ohrrpgce at lists.motherhamster.org
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>
>>>> _______________________________________________
>>>> Ohrrpgce mailing list
>>>> ohrrpgce at lists.motherhamster.org
>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>
>>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20190530/f58d9d43/attachment.html>


More information about the Ohrrpgce mailing list