History log of /haiku/src/kits/shared/NaturalCompare.cpp
Revision Date Author Comments
# 3ec77017 29-May-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

NaturalCompare: implement using locale kit

The non-locale aware version is kept in src/build/libshared for use on
the host system and in packagefs (kernel add-on). In both cases, ICU is
not available.

Fixes #8192


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# f1553a0f 22-Feb-2012 Axel Dörfler <axeld@pinc-software.de>

Made it pass the tests, simplified number comparison.

* Space after a number was not correctly handled (must be ignored).
* Better conceal the fact that I'm not always the brightest - the number
comparison was pretty questionable :-)


# f88aa5f7 22-Feb-2012 Axel Dörfler <axeld@pinc-software.de>

Made NaturalCompare() accept NULL strings.


# bc1bd8ba 01-Feb-2011 Oliver Tappe <zooey@hirschkaefer.de>

* updated copyright section for NaturalCompare according to commit
logs (the OpenTracker license doesn't apply since NaturalCompare
was never part of OpenTracker).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40341 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9daff332 28-Jan-2011 Oliver Tappe <zooey@hirschkaefer.de>

* moved NaturalCompare() from libtracker.so to libshared.a, in order
to make it available elsewhere


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40307 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# f1553a0fc450d8a1442f6a52873906ca98e14a86 22-Feb-2012 Axel Dörfler <axeld@pinc-software.de>

Made it pass the tests, simplified number comparison.

* Space after a number was not correctly handled (must be ignored).
* Better conceal the fact that I'm not always the brightest - the number
comparison was pretty questionable :-)


# f88aa5f760dd5d49c25e08fcadf4eff0c6ad97a6 22-Feb-2012 Axel Dörfler <axeld@pinc-software.de>

Made NaturalCompare() accept NULL strings.


# bc1bd8bac096a7d0a1305941f7ecc876a5710c27 01-Feb-2011 Oliver Tappe <zooey@hirschkaefer.de>

* updated copyright section for NaturalCompare according to commit
logs (the OpenTracker license doesn't apply since NaturalCompare
was never part of OpenTracker).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40341 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9daff3323bf8d888dd4748427d1e482a939d0f83 28-Jan-2011 Oliver Tappe <zooey@hirschkaefer.de>

* moved NaturalCompare() from libtracker.so to libshared.a, in order
to make it available elsewhere


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40307 a95241bf-73f2-0310-859d-f6bbb57e9c96