Changeset 102458 in vbox
- Timestamp:
- Dec 4, 2023 5:54:51 PM (12 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r102457 r102458 155 155 nsprpub/lib/ds/plarenas.h \ 156 156 nsprpub/lib/ds/plhash.h \ 157 nsprpub/lib/libc/include/plstr.h \158 157 nsprpub/pr/include/prbit.h \ 159 158 nsprpub/pr/include/prclist.h \ … … 389 388 nsprpub/lib/ds/plarena.c \ 390 389 nsprpub/lib/ds/plhash.c \ 391 nsprpub/lib/libc/src/strccmp.c \392 390 nsprpub/pr/src/pthreads/ptsynch.c 393 391 -
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
r102457 r102458 41 41 #include "nsIServiceManager.h" 42 42 #include "nsReadableUtils.h" 43 #include "plstr.h"44 43 #include "ipcITransactionObserver.h" 45 44 #include "tmTransaction.h" -
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcStringList.h
r7029 r102458 39 39 #define ipcStringList_h__ 40 40 41 #include <iprt/string.h> 42 41 43 #include <string.h> 42 #include "plstr.h"43 44 #include "nscore.h" 44 45 #include "ipcList.h" … … 56 57 57 58 PRBool Equals(const char *val) const { return strcmp(mData, val) == 0; } 58 PRBool EqualsIgnoreCase(const char *val) const { return PL_strcasecmp(mData, val) == 0; }59 PRBool EqualsIgnoreCase(const char *val) const { return RTStrICmp(mData, val) == 0; } 59 60 60 61 class ipcStringNode *mNext; -
trunk/src/libs/xpcom18a4/vboxdeps.cpp
r102457 r102458 2 2 3 3 4 #include <plstr.h>5 4 #include <nsDeque.h> 6 5 #include <nsHashSets.h> … … 14 13 uintptr_t deps[] = 15 14 { 16 (uintptr_t)PL_strcasecmp,17 15 (uintptr_t)PL_HashString, 18 16 (uintptr_t)NS_ProxyRelease, -
trunk/src/libs/xpcom18a4/xpcom/base/nsDebugImpl.cpp
r102348 r102458 41 41 #include "nsDebugImpl.h" 42 42 #include "nsDebug.h" 43 #include "plstr.h"44 43 #include "nsError.h" 45 44 -
trunk/src/libs/xpcom18a4/xpcom/base/nsTraceRefcntImpl.cpp
r102457 r102458 43 43 #include "nsISupports.h" 44 44 #include "nsVoidArray.h" 45 #include "plstr.h"46 45 #include <stdlib.h> 47 46 #include "nsCOMPtr.h" -
trunk/src/libs/xpcom18a4/xpcom/components/nsComponentManager.cpp
r102457 r102458 2905 2905 nsFactoryEntry* factoryEntry = entry->mFactoryEntry; 2906 2906 if (data->cid->Equals(factoryEntry->mCid) && 2907 ((data->regName && ! PL_strcasecmp(factoryEntry->mLocation, data->regName)) ||2907 ((data->regName && !RTStrICmp(factoryEntry->mLocation, data->regName)) || 2908 2908 (data->factory && data->factory == factoryEntry->mFactory.get()))) 2909 2909 return PL_DHASH_REMOVE; … … 2983 2983 // next check to see if there is a CID registered 2984 2984 old = GetFactoryEntry(aClass); 2985 if (old && old->mLocation && ! PL_strcasecmp(old->mLocation, registryName))2985 if (old && old->mLocation && !RTStrICmp(old->mLocation, registryName)) 2986 2986 { 2987 2987 nsAutoMonitor mon(mMon); -
trunk/src/libs/xpcom18a4/xpcom/components/nsNativeComponentLoader.cpp
r102204 r102458 60 60 61 61 #include <iprt/assert.h> 62 #include <iprt/string.h> 62 63 #include <VBox/log.h> 63 64 … … 205 206 if ( NS_FAILED(rv) 206 207 || leafName.Length() < sizeof(".dSYM") 207 || PL_strcasecmp(leafName.get() + (leafName.Length() - sizeof(".dSYM") + 1), ".dSYM"))208 || RTStrICmp(leafName.get() + (leafName.Length() - sizeof(".dSYM") + 1), ".dSYM")) 208 209 #endif 209 210 rv = RegisterComponentsInDir(when, dirEntry); … … 573 574 size_t cchLeafName = strLeafName.Length(); 574 575 if ( cchLeafName <= sizeof(s_szSuff) 575 || PL_strcasecmp(strLeafName.get() + cchLeafName - sizeof(s_szSuff) + 1, s_szSuff))576 || RTStrICmp(strLeafName.get() + cchLeafName - sizeof(s_szSuff) + 1, s_szSuff)) 576 577 { 577 578 Log(("Skipping '%s'...", strLeafName.get())); … … 580 581 #ifndef VBOX_IN_32_ON_64_MAIN_API 581 582 if ( cchLeafName >= sizeof(s_szSuffInvalid) 582 && ! PL_strcasecmp(strLeafName.get() + cchLeafName - sizeof(s_szSuffInvalid) + 1, s_szSuffInvalid))583 && !RTStrICmp(strLeafName.get() + cchLeafName - sizeof(s_szSuffInvalid) + 1, s_szSuffInvalid)) 583 584 { 584 585 Log(("Skipping '%s' (#2)...", strLeafName.get())); -
trunk/src/libs/xpcom18a4/xpcom/ds/nsCRT.h
r102457 r102458 45 45 #include <ctype.h> 46 46 #include "nsMemory.h" 47 #include "plstr.h"48 47 #include "nscore.h" 49 48 #include "prtypes.h" … … 145 144 return PRUint32(::strlen(s)); 146 145 } 147 148 /// Case-insensitive string comparison.149 static PRInt32 strcasecmp(const char* s1, const char* s2) {150 return PRInt32(PL_strcasecmp(s1, s2));151 }152 153 /// Case-insensitive string comparison with length154 static PRInt32 strncasecmp(const char* s1, const char* s2, PRUint32 aMaxLen) {155 PRInt32 result=PRInt32(PL_strncasecmp(s1, s2, aMaxLen));156 //Egads. PL_strncasecmp is returning *very* negative numbers.157 //Some folks expect -1,0,1, so let's temper its enthusiasm.158 if (result<0)159 result=-1;160 return result;161 }162 146 163 147 static char* strdup(const char* str) { -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiMisc.cpp
r102323 r102458 68 68 for(const xptiFileTypeEntry* p = g_Entries; p->name; p++) 69 69 { 70 if(len > p->len && 0 == PL_strcasecmp(p->name, &(name[len - p->len])))70 if(len > p->len && 0 == RTStrICmp(p->name, &(name[len - p->len]))) 71 71 return p->type; 72 72 } -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiprivate.h
r102457 r102458 79 79 80 80 #include "pldhash.h" 81 #include "plstr.h"82 81 #include "prtime.h" 83 82 -
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); -
trunk/src/libs/xpcom18a4/xpcom/tests/TestCRT.cpp
r102457 r102458 39 39 #include "nsCRT.h" 40 40 #include "nsString.h" 41 #include "plstr.h"42 41 #include <stdlib.h> 43 42 … … 63 62 PRIntn clib = RTStrCmp(s1, s2); 64 63 PRIntn clib_n = RTStrNCmp(s1, s2, n); 65 PRIntn clib_case = PL_strcasecmp(s1, s2);66 PRIntn clib_case_n = PL_strncasecmp(s1, s2, n);67 64 68 65 nsAutoString t1,t2;
Note:
See TracChangeset
for help on using the changeset viewer.