RE: Re: Re: RE: Repobrowser - Numeric order filename sorting
From: Gerasimov, Ivan <Ivan.Gerasimov_at_transas.com>
Date: 2006-04-11 13:29:56 CEST
Hello, Stefan!
> > > But, it still will be wrong for strings like
The routine will eat leading characters from both strings up to the first distinguishing character. Remaining strings will be then "3.2" and "7.8". Since both strings start with digits, the routine will try to parse them and will come up with "3" and "7". 3 is less than 7. That's it.
I used the clause (IsCharAlphaNumeric(ch) && !IsCharAlpha(ch)) only as synonym for 'isdigit' function. For some reason the function IsCharNumeric() is missing from Win API. I did not assume anywhere that dot is alpha-numeric.
Sincerely yours,
---------------------------------------------------------------------
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.