/vbox/src/VBox/Runtime/common/string/ |
H A D | RTStrCmp.cpp | 46 * @param psz2 Second UTF-8 string. Null is allowed. 48 RTDECL(int) RTStrCmp(const char *psz1, const char *psz2) argument 50 if (psz1 == psz2) 54 if (!psz2) 57 return strcmp(psz1, psz2);
|
H A D | strcmp_alias.c | 40 extern int (strcmp)(const char *psz1, const char *psz2) argument 42 return RT_NOCRT(strcmp)(psz1, psz2);
|
H A D | strcpy_alias.c | 40 extern char * (strcpy)(char *psz1, const char *psz2) argument 42 return RT_NOCRT(strcpy)(psz1, psz2);
|
H A D | RTUtf16CmpAscii.cpp | 37 RTDECL(int) RTUtf16CmpAscii(PCRTUTF16 pwsz1, const char *psz2) argument 42 unsigned char uch2 = *psz2++; Assert(uch2 < 0x80);
|
H A D | RTUtf16ICmpAscii.cpp | 38 RTDECL(int) RTUtf16ICmpAscii(PCRTUTF16 pwsz1, const char *psz2) argument 43 unsigned char uch2 = *psz2++; Assert(uch2 < 0x80);
|
H A D | RTStrNCmp.cpp | 35 RTDECL(int) RTStrNCmp(const char *psz1, const char *psz2, size_t cchMax) argument 37 if (psz1 == psz2) 41 if (!psz2) 50 char ch2 = *psz2++; 58 return strncmp(psz1, psz2, cchMax);
|
H A D | strversion.cpp | 142 const char *psz2 = psz; local 149 int rc = RTStrToInt32Ex(psz2, NULL, 10, pi32Value); 155 psz = psz2;
|
H A D | utf-8-case.cpp | 59 * @param psz2 Second UTF-8 string. Null is allowed. 61 RTDECL(int) RTStrICmp(const char *psz1, const char *psz2) argument 63 if (psz1 == psz2) 67 if (!psz2) 84 rc = RTStrGetCpEx(&psz2, &uc2); 88 psz2--; 112 return RTStrCmp(psz1, psz2); 135 * @param psz2 Second UTF-8 string. Null is allowed. 138 RTDECL(int) RTStrNICmp(const char *psz1, const char *psz2, size_t cchMax) argument 142 if (psz1 == psz2) [all...] |
/vbox/src/VBox/Runtime/r3/nt/ |
H A D | internal-r3-nt.h | 52 * @param psz2 The second string. 55 DECLINLINE(bool) rtNtCompWideStrAndAscii(WCHAR const *pwsz1, size_t cch1, const char *psz2, size_t cch2) argument 62 unsigned ch2 = (unsigned char)*psz2++;
|
/vbox/src/VBox/Frontends/VirtualBox/src/ |
H A D | hardenedmain.cpp | 26 * @param psz2 The second string. 28 static int MyStrCmp(const char *psz1, const char *psz2) argument 33 char ch2 = *psz2++;
|
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPR3HardenedNoCrt.cpp | 148 DECLHIDDEN(int) suplibHardenedStrCmp(const char *psz1, const char *psz2) argument 153 char ch2 = *psz2++; 163 DECLHIDDEN(int) suplibHardenedStrNCmp(const char *psz1, const char *psz2, size_t cchMax) argument 168 char ch2 = *psz2++;
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTUuid.cpp | 85 char *psz2 = psz + off; local 86 RTStrPrintf(psz2, RTUUID_STR_LENGTH - off, "%s", sz); 87 RTTESTI_CHECK_RC(RTUuidFromStr(&Uuid2, psz2), VERR_INVALID_UUID_FORMAT); 106 char *psz2 = psz + off; local 107 RTStrPrintf(psz2, RTUUID_STR_LENGTH + 2 - off, "{%s}", sz); 108 RTTESTI_CHECK_RC(RTUuidFromStr(&Uuid2, psz2), VERR_INVALID_UUID_FORMAT);
|
H A D | tstRTStrCache.cpp | 198 const char *psz2; local 199 RTTESTI_CHECK_RETV(psz2 = RTStrCacheEnterN(hStrCache, szTest2, i)); 200 RTTESTI_CHECK_RETV(psz2 != psz); 201 RTTESTI_CHECK(RTStrCacheRelease(hStrCache, psz2) == 0); 225 const char *psz1, *psz2; local 227 RTTESTI_CHECK((psz2 = RTStrCacheEnterN(hStrCache, szTest2, i)) == pszTest2Rets[i]); 229 RTTESTI_CHECK_MSG((cRefs = RTStrCacheRelease(hStrCache, psz2)) == 1, ("cRefs=%#x i=%#x\n", cRefs, i));
|
H A D | tstIprtMiniString.cpp | 361 static int mymemcmp(const char *psz1, const char *psz2, size_t cch) argument 364 if (psz1[off] != psz2[off]) 366 RTTestIFailed("off=%#x psz1=%.*Rhxs psz2=%.*Rhxs\n", off, 368 RT_MIN(cch - off, 8), &psz2[off]); 369 return psz1[off] > psz2[off] ? 1 : -1;
|
H A D | tstUtf8.cpp | 520 const char *psz2 = g_szAll; local 532 RTTestFailed(hTest, "RTStrGetCpEx failed with rc=%Rrc at %.10Rhxs", rc, psz2); 533 whereami(8, psz2 - &g_szAll[0]); 537 if (pszPrev1 != psz2) 539 RTTestFailed(hTest, "RTStrPrevCp returned %p expected %p!", pszPrev1, psz2); 540 whereami(8, psz2 - &g_szAll[0]); 543 RTUNICP uc2 = RTStrGetCp(psz2); 547 whereami(8, psz2 - &g_szAll[0]); 550 psz2 = RTStrNextCp(psz2); 1135 char *psz2 = &sz[0]; local 1271 char *psz2 = &sz[0]; local [all...] |
/vbox/src/libs/kStuff/iprt/ |
H A D | kHlpString-iprt.cpp | 90 char *kHlpStrCat(char *psz1, const char *psz2) argument 92 return strcat(psz1, psz2); 98 char *kHlpStrNCat(char *psz1, const char *psz2, KSIZE cb) argument 100 return strncat(psz1, psz2, cb); 122 int kHlpStrComp(const char *psz1, const char *psz2) argument 124 return strcmp(psz1, psz2); 130 int kHlpStrNComp(const char *psz1, const char *psz2, KSIZE cch) argument 132 return strncmp(psz1, psz2, cch); 138 char *kHlpStrCopy(char *psz1, const char *psz2) argument 140 return strcpy(psz1, psz2); [all...] |
/vbox/src/bldprogs/ |
H A D | biossums.c | 42 const char *psz2 = strrchr(pszPath, '\\'); local 43 if (!psz2) 44 psz2 = strrchr(pszPath, ':'); 45 if (psz2 && (!psz || psz2 > psz)) 46 psz = psz2;
|
/vbox/src/VBox/Runtime/r3/win/ |
H A D | fs-win.cpp | 346 * @param psz2 The second string. 349 static bool rtFsWinAreEqual(WCHAR const *pwsz1, size_t cch1, const char *psz2, size_t cch2) argument 356 unsigned ch2 = (unsigned char)*psz2++;
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | STAM.cpp | 590 * @retval < 0 if psz1 is less than psz2. 591 * @retval > 0 if psz1 greater than psz2. 594 * @param psz2 The second string. 596 static int stamR3SlashCompare(const char *psz1, const char *psz2) argument 601 unsigned int ch2 = *psz2++;
|
/vbox/src/VBox/Debugger/ |
H A D | DBGCEval.cpp | 772 char *psz2 = pszOpSplit + pOpSplit->cchName; local 774 rc = dbgcEvalSub(pDbgc, psz2, cchExpr - (psz2 - pszExpr), pOpSplit->enmCatArg2, &Arg2);
|
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/include/ |
H A D | fdi.h | 242 char *psz2; member in struct:__anon13578
|
/vbox/include/iprt/ |
H A D | string.h | 2307 * @param psz2 Second UTF-8 string. Null is allowed. 2309 RTDECL(int) RTStrCmp(const char *psz1, const char *psz2); 2323 * @param psz2 Second UTF-8 string. Null is allowed. 2326 RTDECL(int) RTStrNCmp(const char *psz1, const char *psz2, size_t cchMax); 2345 * @param psz2 Second UTF-8 string. Null is allowed. 2347 RTDECL(int) RTStrICmp(const char *psz1, const char *psz2); 2367 * @param psz2 Second UTF-8 string. Null is allowed. 2370 RTDECL(int) RTStrNICmp(const char *psz1, const char *psz2, size_t cchMax); 3507 * @param psz2 Second string, pure ASCII. Null is allowed. 3510 RTDECL(int) RTUtf16CmpAscii(PCRTUTF16 pwsz1, const char *psz2); 1427 AssertReturn(CodePoint < 0x100, NULL); *psz++ = (unsigned char)CodePoint; return psz; } DECLINLINE(char *) RTLatin1NextCp(const char *psz) { psz++; return (char *)psz; } DECLINLINE(char *) RTLatin1PrevCp(const char *psz) { psz--; return (char *)psz; } typedef DECLCALLBACK(size_t) FNRTSTROUTPUT(void *pvArg, const char *pachChars, size_t cbChars); typedef FNRTSTROUTPUT *PFNRTSTROUTPUT; typedef DECLCALLBACK(size_t) FNSTRFORMAT(void *pvArg, PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize); typedef FNSTRFORMAT *PFNSTRFORMAT; RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, va_list InArgs); RTDECL(size_t) RTStrFormat(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, ...); RTDECL(int) RTStrFormatNumber(char *psz, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, unsigned int fFlags); RTDECL(ssize_t) RTStrFormatU8(char *pszBuf, size_t cbBuf, uint8_t u8Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU16(char *pszBuf, size_t cbBuf, uint16_t u16Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU32(char *pszBuf, size_t cbBuf, uint32_t u32Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU64(char *pszBuf, size_t cbBuf, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU128(char *pszBuf, size_t cbBuf, PCRTUINT128U pu128Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatR80(char *pszBuf, size_t cbBuf, PCRTFLOAT80U pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatR80u2(char *pszBuf, size_t cbBuf, PCRTFLOAT80U2 pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); typedef DECLCALLBACK(size_t) FNRTSTRFORMATTYPE(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char *pszType, void const *pvValue, int cchWidth, int cchPrecision, unsigned fFlags, void *pvUser); typedef FNRTSTRFORMATTYPE *PFNRTSTRFORMATTYPE; RTDECL(int) RTStrFormatTypeRegister(const char *pszType, PFNRTSTRFORMATTYPE pfnHandler, void *pvUser); RTDECL(int) RTStrFormatTypeDeregister(const char *pszType); RTDECL(int) RTStrFormatTypeSetUser(const char *pszType, void *pvUser); RTDECL(size_t) RTStrPrintfV(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args); RTDECL(size_t) RTStrPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...); RTDECL(size_t) RTStrPrintfExV(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args); RTDECL(size_t) RTStrPrintfEx(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...); RTDECL(int) RTStrAPrintfVTag(char **ppszBuffer, const char *pszFormat, va_list args, const char *pszTag); DECLINLINE(int) RTStrAPrintf(char **ppszBuffer, const char *pszFormat, ...) { int cbRet; va_list va; va_start(va, pszFormat); cbRet = RTStrAPrintfVTag(ppszBuffer, pszFormat, va, RTSTR_TAG); va_end(va); return cbRet; } DECLINLINE(int) RTStrAPrintfTag(char **ppszBuffer, const char *pszTag, const char *pszFormat, ...) { int cbRet; va_list va; va_start(va, pszFormat); cbRet = RTStrAPrintfVTag(ppszBuffer, pszFormat, va, pszTag); va_end(va); return cbRet; } RTDECL(char *) RTStrAPrintf2VTag(const char *pszFormat, va_list args, const char *pszTag); DECLINLINE(char *) RTStrAPrintf2(const char *pszFormat, ...) { char *pszRet; va_list va; va_start(va, pszFormat); pszRet = RTStrAPrintf2VTag(pszFormat, va, RTSTR_TAG); va_end(va); return pszRet; } DECLINLINE(char *) RTStrAPrintf2Tag(const char *pszTag, const char *pszFormat, ...) { char *pszRet; va_list va; va_start(va, pszFormat); pszRet = RTStrAPrintf2VTag(pszFormat, va, pszTag); va_end(va); return pszRet; } RTDECL(char *) RTStrStrip(char *psz); RTDECL(char *) RTStrStripL(const char *psz); RTDECL(char *) RTStrStripR(char *psz); RTDECL(int) RTStrCopy(char *pszDst, size_t cbDst, const char *pszSrc); RTDECL(int) RTStrCopyEx(char *pszDst, size_t cbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCopyP(char **ppszDst, size_t *pcbDst, const char *pszSrc); RTDECL(int) RTStrCopyPEx(char **ppszDst, size_t *pcbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCat(char *pszDst, size_t cbDst, const char *pszSrc); RTDECL(int) RTStrCatEx(char *pszDst, size_t cbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCatP(char **ppszDst, size_t *pcbDst, const char *pszSrc); RTDECL(int) RTStrCatPEx(char **ppszDst, size_t *pcbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCmp(const char *psz1, const char *psz2); RTDECL(int) RTStrNCmp(const char *psz1, const char *psz2, size_t cchMax); RTDECL(int) RTStrICmp(const char *psz1, const char *psz2); RTDECL(int) RTStrNICmp(const char *psz1, const char *psz2, size_t cchMax); RTDECL(char *) RTStrStr(const char *pszHaystack, const char *pszNeedle); RTDECL(char *) RTStrIStr(const char *pszHaystack, const char *pszNeedle); RTDECL(char *) RTStrToLower(char *psz); RTDECL(char *) RTStrToUpper(char *psz); RTDECL(bool) RTStrIsCaseFoldable(const char *psz); RTDECL(bool) RTStrIsUpperCased(const char *psz); RTDECL(bool) RTStrIsLowerCased(const char *psz); RTDECL(size_t) RTStrNLen(const char *pszString, size_t cchMax); RTDECL(int) RTStrNLenEx(const char *pszString, size_t cchMax, size_t *pcch); RT_C_DECLS_END DECLINLINE(char const *) RTStrEnd(char const *pszString, size_t cchMax) { while (cchMax > RTSTR_MEMCHR_MAX) argument [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/include/ |
H A D | fdi.h | 238 char *psz2; member in struct:__anon974
|
/vbox/src/VBox/Devices/EFI/ |
H A D | DevEFI.cpp | 890 char const *psz2 = psz1; local 892 RTStrGetCpEx(&psz2, &Cp); 894 Log2(("EFI_VM_VARIABLE_OP_NAME_UTF16[%u] => %#x (+%d)\n", pThis->NVRAM.offOpBuffer, *pu32, psz2 - psz1)); 895 pThis->NVRAM.offOpBuffer += psz2 - psz1;
|