Changeset 102458 in vbox for trunk/src/libs/xpcom18a4/xpcom/string
- Timestamp:
- Dec 4, 2023 5:54:51 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160601
- Location:
- trunk/src/libs/xpcom18a4/xpcom/string/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/string/src/nsStringComparator.cpp
r1 r102458 36 36 * 37 37 * ***** END LICENSE BLOCK ***** */ 38 #include <iprt/string.h> 38 39 39 40 #include <ctype.h> 40 41 #include "nsAString.h" 41 #include "plstr.h"42 43 42 44 43 // define nsStringComparator … … 56 55 nsCaseInsensitiveCStringComparator::operator()( const char_type* lhs, const char_type* rhs, PRUint32 aLength ) const 57 56 { 58 PRInt32 result=PRInt32( PL_strncasecmp(lhs, rhs, aLength));57 PRInt32 result=PRInt32(RTStrNICmp(lhs, rhs, aLength)); 59 58 //Egads. PL_strncasecmp is returning *very* negative numbers. 60 59 //Some folks expect -1,0,1, so let's temper its enthusiasm. -
trunk/src/libs/xpcom18a4/xpcom/string/src/nsStringObsolete.cpp
r102345 r102458 289 289 PRInt32 result=0; 290 290 if(aIgnoreCase) 291 result=PRInt32( PL_strncasecmp(aStr1, aStr2, aCount));291 result=PRInt32(RTStrNICmp(aStr1, aStr2, aCount)); 292 292 else 293 293 result=nsCharTraits<char>::compare(aStr1,aStr2,aCount);
Note:
See TracChangeset
for help on using the changeset viewer.