1*9daff332SOliver Tappe /* 2*9daff332SOliver Tappe Open Tracker License 3*9daff332SOliver Tappe 4*9daff332SOliver Tappe Terms and Conditions 5*9daff332SOliver Tappe 6*9daff332SOliver Tappe Copyright (c) 1991-2000, Be Incorporated. All rights reserved. 7*9daff332SOliver Tappe 8*9daff332SOliver Tappe Permission is hereby granted, free of charge, to any person obtaining a copy of 9*9daff332SOliver Tappe this software and associated documentation files (the "Software"), to deal in 10*9daff332SOliver Tappe the Software without restriction, including without limitation the rights to 11*9daff332SOliver Tappe use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12*9daff332SOliver Tappe of the Software, and to permit persons to whom the Software is furnished to do 13*9daff332SOliver Tappe so, subject to the following conditions: 14*9daff332SOliver Tappe 15*9daff332SOliver Tappe The above copyright notice and this permission notice applies to all licensees 16*9daff332SOliver Tappe and shall be included in all copies or substantial portions of the Software. 17*9daff332SOliver Tappe 18*9daff332SOliver Tappe THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19*9daff332SOliver Tappe IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY, 20*9daff332SOliver Tappe FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21*9daff332SOliver Tappe BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 22*9daff332SOliver Tappe AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION 23*9daff332SOliver Tappe WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24*9daff332SOliver Tappe 25*9daff332SOliver Tappe Except as contained in this notice, the name of Be Incorporated shall not be 26*9daff332SOliver Tappe used in advertising or otherwise to promote the sale, use or other dealings in 27*9daff332SOliver Tappe this Software without prior written authorization from Be Incorporated. 28*9daff332SOliver Tappe 29*9daff332SOliver Tappe Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks 30*9daff332SOliver Tappe of Be Incorporated in the United States and other countries. Other brand product 31*9daff332SOliver Tappe names are registered trademarks or trademarks of their respective holders. 32*9daff332SOliver Tappe All rights reserved. 33*9daff332SOliver Tappe */ 34*9daff332SOliver Tappe 35*9daff332SOliver Tappe #ifndef _NATURAL_COMPARE_H 36*9daff332SOliver Tappe #define _NATURAL_COMPARE_H 37*9daff332SOliver Tappe 38*9daff332SOliver Tappe 39*9daff332SOliver Tappe namespace BPrivate { 40*9daff332SOliver Tappe 41*9daff332SOliver Tappe 42*9daff332SOliver Tappe //! Compares two strings naturally, as opposed to lexicographically 43*9daff332SOliver Tappe int NaturalCompare(const char* stringA, const char* stringB); 44*9daff332SOliver Tappe 45*9daff332SOliver Tappe 46*9daff332SOliver Tappe } // namespace BPrivate 47*9daff332SOliver Tappe 48*9daff332SOliver Tappe 49*9daff332SOliver Tappe #endif // _NATURAL_COMPARE_H 50