summaryrefslogtreecommitdiff
path: root/firmware/common/strnatcmp.c (follow)
Commit message (Collapse)AuthorAge
* Remove tabs in firmware path (taking into account the original spacing).Andree Buschmann2010-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657
* Remove dead codeAlexander Levin2009-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22268 a1c6a512-1295-4272-9138-f99709370657
* Change the function name in strnatsort so that the code doesn't contradict ↵Alexander Levin2009-08-12
| | | | | | itself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22267 a1c6a512-1295-4272-9138-f99709370657
* Fix for:Thomas Martitz2009-08-04
| | | | | | | | | | FS#10031 - "improper sorting of names with underscores when Interpret numbers when sorting is used" and FS#10200 - "Incorrect sorting of roman numerals when whole numbers selected" a) By using tolower instead of toupper for case-insensitive sorting b) By not ignoring spaces (which isn't really what we aimed for anyway). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22153 a1c6a512-1295-4272-9138-f99709370657
* Update the comment about our changes too.Thomas Martitz2009-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20341 a1c6a512-1295-4272-9138-f99709370657
* Restore behavior of the original implementation strnatcmp to not ignore ↵Thomas Martitz2009-03-17
| | | | | | leading zeros. Fixes FS#10029 (Files being sorted incorrectly in latest builds), leads to better sorting of decimal numbers. It also doesn't sort 2 before 03 (but still before 10) anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20340 a1c6a512-1295-4272-9138-f99709370657
* Make strnatcmp() and strnatcasecmp() call strcmp() or strcasecmp() if ↵Frank Gevaerts2009-03-09
| | | | | | strings otherwise sort the same. This is done to make sure that strings always sort the same. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20265 a1c6a512-1295-4272-9138-f99709370657
* Make sure that sorting works both for signed and unsigned char (it depends ↵Alexander Levin2009-03-02
| | | | | | on the platform/compiler used) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20183 a1c6a512-1295-4272-9138-f99709370657
* Make natural sorting work properly with cyrillic chars: they should be ↵Alexander Levin2009-03-02
| | | | | | placed after the latin ones (FS#9975). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20180 a1c6a512-1295-4272-9138-f99709370657
* Actually apply the patch...thanks again to Bryan Vandyke (and Tom Ross for ↵Thomas Martitz2009-03-02
| | | | | | notifying me about my commit-fail). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20167 a1c6a512-1295-4272-9138-f99709370657
* FS#9972 - Simplify strnatcmp. As we do ignore leading zeros (as opposed to ↵Thomas Martitz2009-03-02
| | | | | | | | the original version), we can remove some unused code. Also, change the header to state that we changed it and do not use the original version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20166 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#8314. This adds strnat[case]cmp written by Martin Pool, which ↵Thomas Martitz2009-03-01
respects numbers within strings, and gives a more intuitive sorting. This also adds a setting, so that the sorting can be used in the file browser. The implementation is very generic, and can possibly be used in other places. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20155 a1c6a512-1295-4272-9138-f99709370657