]> Sergey Matveev's repositories - nnn.git/commit
Ignore punctuation marks in file name compare. Fix xstrcmp().
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Dec 2017 12:19:31 +0000 (17:49 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Dec 2017 12:19:31 +0000 (17:49 +0530)
commit988a3dd62145ff49a631837a7006cdf73bcadbe8
tree780e6a90f8aec42388a47605f22ac36a1eee8132
parent6f4ab8e3dae7e08507e1be2faeae13e0d824f347
Ignore punctuation marks in file name compare. Fix xstrcmp().

1. File name comparison method:
 - initially ignore white space and punctuation characters
 - run test for numeric values
 - if the remaining substrings match in case-insensitive compare, compare case
 - if they still match, see which one has more prefix symbols
 - if they still match, run a case-sensitive compare on complete strings

2. Fixed xstrcmp() to return diff instead of 0 and -1.
nnn.c