19daff332SOliver Tappe /* 2*bc1bd8baSOliver Tappe * Copyright 2009, Dana Burkart 3*bc1bd8baSOliver Tappe * Copyright 2009, Stephan Aßmus <superstippi@gmx.de> 4*bc1bd8baSOliver Tappe * Copyright 2010, Axel Dörfler, axeld@pinc-software.de 5*bc1bd8baSOliver Tappe * Copyright 2010, Rene Gollent (anevilyak@gmail.com) 6*bc1bd8baSOliver Tappe * Distributed under the terms of the MIT License. 79daff332SOliver Tappe */ 89daff332SOliver Tappe #ifndef _NATURAL_COMPARE_H 99daff332SOliver Tappe #define _NATURAL_COMPARE_H 109daff332SOliver Tappe 119daff332SOliver Tappe 129daff332SOliver Tappe namespace BPrivate { 139daff332SOliver Tappe 149daff332SOliver Tappe 159daff332SOliver Tappe //! Compares two strings naturally, as opposed to lexicographically 169daff332SOliver Tappe int NaturalCompare(const char* stringA, const char* stringB); 179daff332SOliver Tappe 189daff332SOliver Tappe 199daff332SOliver Tappe } // namespace BPrivate 209daff332SOliver Tappe 219daff332SOliver Tappe 229daff332SOliver Tappe #endif // _NATURAL_COMPARE_H 23