| /vbox/src/VBox/Runtime/testcase/ |
| H A D | tstRTStrAlloc.cpp | 44 char *psz; local 48 RTTESTI_CHECK(psz = RTStrAlloc(0)); 49 RTTESTI_CHECK(psz && !*psz); 50 RTStrFree(psz); 52 RTTESTI_CHECK(psz = RTStrAlloc(1)); 53 RTTESTI_CHECK(psz && !*psz); 54 RTStrFree(psz); 56 RTTESTI_CHECK(psz [all...] |
| H A D | tstRTStrCache.cpp | 143 const char *psz; local 146 RTTESTI_CHECK_RETV(psz = RTStrCacheEnter(hStrCache, "abcdefgh")); 147 RTTESTI_CHECK_RETV(strcmp(psz, "abcdefgh") == 0); 148 RTTESTI_CHECK_RETV(RTStrCacheLength(psz) == strlen("abcdefgh")); 149 RTTESTI_CHECK_RETV(RTStrCacheRelease(hStrCache, psz) == 0); 151 RTTESTI_CHECK_RETV(psz = RTStrCacheEnter(hStrCache, "abcdefghijklmnopqrstuvwxyz")); 152 RTTESTI_CHECK_RETV(strcmp(psz, "abcdefghijklmnopqrstuvwxyz") == 0); 153 RTTESTI_CHECK_RETV(RTStrCacheLength(psz) == strlen("abcdefghijklmnopqrstuvwxyz")); 154 RTTESTI_CHECK_RETV(RTStrCacheRelease(hStrCache, psz) == 0); 157 RTTESTI_CHECK_RETV(psz [all...] |
| H A D | tstRTDigest.cpp | 147 if (!RTStrICmp(ValueUnion.psz, "crc32")) 152 else if (!RTStrICmp(ValueUnion.psz, "crc64")) 157 else if (!RTStrICmp(ValueUnion.psz, "md2")) 162 else if (!RTStrICmp(ValueUnion.psz, "md5")) 167 else if (!RTStrICmp(ValueUnion.psz, "sha1")) 172 else if (!RTStrICmp(ValueUnion.psz, "sha224")) 177 else if (!RTStrICmp(ValueUnion.psz, "sha256")) 182 else if (!RTStrICmp(ValueUnion.psz, "sha384")) 187 else if (!RTStrICmp(ValueUnion.psz, "sha512")) 192 else if (!RTStrICmp(ValueUnion.psz, "sha51 463 char *psz; local [all...] |
| /vbox/src/VBox/Runtime/common/string/ |
| H A D | strstrip.cpp | 42 * @param psz The string to strip. 44 RTDECL(char *) RTStrStrip(char *psz) argument 47 while (RT_C_IS_SPACE(*psz)) 48 psz++; 51 char *pszEnd = strchr(psz, '\0'); 52 while (--pszEnd > psz && RT_C_IS_SPACE(*pszEnd)) 55 return psz; 64 * @param psz The string to strip. 66 RTDECL(char *) RTStrStripL(const char *psz) argument 69 while (RT_C_IS_SPACE(*psz)) 83 RTStrStripR(char *psz) argument [all...] |
| H A D | strcpy.cpp | 43 register char *psz = pszDst; local 44 while ((*psz++ = *pszSrc++))
|
| H A D | strlen.cpp | 50 register const char *psz = pszString; local 51 while (*psz) 52 psz++; 53 return psz - pszString;
|
| H A D | straprintf.cpp | 45 char *psz; member in struct:STRALLOCARG 79 if (pArg->psz) 88 memcpy(pArg->psz, pachChars, cbChars); 90 pArg->psz += cbChars; 92 *pArg->psz = '\0'; 108 size_t off = pArg->psz - pArg->pszBuffer; 117 pArg->psz = pszBuffer + off; 122 memcpy(pArg->psz, pachChars, cbChars); 124 pArg->psz += cbChars; 126 *pArg->psz 162 char *psz = (char *)RTMemAllocTag(cbRet + 1, pszTag); local 170 char *psz = (char *)RTMemReallocTag(Arg.pszBuffer, cbRet + 1, pszTag); local [all...] |
| H A D | strversion.cpp | 56 const char *psz = *ppszVer; local 61 if (!*psz) 72 bool fNumeric = RT_C_IS_DIGIT(*psz); 76 ch = *++psz; 94 ch = *++psz; 99 size_t cchBlock = psz - *ppszVer; 101 && psz[-1] == 'r' 102 && RT_C_IS_DIGIT(*psz)) 104 psz--; 115 const char *psz; member in struct:__anon16587 [all...] |
| H A D | strtonum.cpp | 111 const char *psz = pszValue; local 121 for (;; psz++) 123 if (*psz == '+') 125 else if (*psz == '-') 136 if ( psz[0] == '0' 137 && (psz[1] == 'x' || psz[1] == 'X') 138 && g_auchDigits[(unsigned char)psz[2]] < 16) 141 psz += 2; 143 else if ( psz[ 234 char *psz; local 556 const char *psz = pszValue; local 674 char *psz; local [all...] |
| H A D | utf-8-case2.cpp | 41 RTDECL(bool) RTStrIsCaseFoldable(const char *psz) argument 50 int rc = RTStrGetCpEx(&psz, &uc); 68 RTDECL(bool) RTStrIsUpperCased(const char *psz) argument 76 int rc = RTStrGetCpEx(&psz, &uc); 94 RTDECL(bool) RTStrIsLowerCased(const char *psz) argument 102 int rc = RTStrGetCpEx(&psz, &uc);
|
| H A D | strchr_alias.c | 40 extern char *(strchr)(const char *psz, int ch) argument 42 return RT_NOCRT(strchr)(psz, ch);
|
| /vbox/src/VBox/Runtime/common/path/ |
| H A D | RTPathChangeToDosSlashes.cpp | 52 char *psz = pszPath; local 53 while ((ch = *psz) != '\0') 56 *psz = '\\'; 57 psz++;
|
| H A D | RTPathChangeToUnixSlashes.cpp | 52 char *psz = pszPath; local 53 while ((ch = *psz) != '\0') 56 *psz = '/'; 57 psz++;
|
| H A D | RTPathStripFilename.cpp | 45 char *psz = pszPath; local 49 for (;; psz++) 51 switch (*psz) 56 pszLastSep = psz + 1; 57 if (RTPATH_IS_SLASH(psz[1])) 58 pszPath = psz + 1; 60 pszPath = psz; 66 pszLastSep = psz;
|
| H A D | RTPathExt.cpp | 37 const char *psz = pszPath; local 40 for (;; psz++) 42 switch (*psz) 56 pszExt = psz;
|
| H A D | RTPathFilename.cpp | 47 const char *psz = pszPath; local 56 for (;; psz++) 58 switch (*psz) 64 pszName = psz + 1; 78 for (;; psz++) 80 switch (*psz) 84 pszName = psz + 1;
|
| H A D | RTPathTraverseList.cpp | 51 const char *psz = pszPathList; local 52 while (*psz) 55 while (RT_C_IS_BLANK(*psz)) 56 psz++; 60 const char *pszEnd = strchr(psz, chSep); 62 pszEnd = pszNext = strchr(psz, '\0'); 65 if (pszEnd != psz) 67 size_t const cch = pszEnd - psz; 68 int rc = pfnCallback(psz, cch, pvUser1, pvUser2); 74 psz [all...] |
| H A D | RTPathParseSimple.cpp | 55 const char *psz = pszPath; local 60 for (;; psz++) 62 switch (*psz) 67 pszName = psz + 1; 68 offRoot = pszName - psz; 74 pszName = psz + 1; 78 pszLastDot = psz; 110 return psz - pszPath;
|
| /vbox/src/VBox/Runtime/r0drv/solaris/ |
| H A D | assert-r0drv-solaris.c | 66 const char *psz = &g_szRTAssertMsg2[0]; local 68 while (psz < pszEnd && (*psz == ' ' || *psz == '\t' || *psz == '\n' || *psz == '\r')) 69 psz++; 71 if (psz < pszEnd && *psz) 72 assfail(psz, g_pszRTAssertFil [all...] |
| /vbox/src/bldprogs/ |
| H A D | VBoxDef2LazyLoad.cpp | 64 static const char *leftStrip(const char *psz) argument 66 while (isspace(*psz)) 67 psz++; 68 return psz; 72 static char *leftStrip(char *psz) argument 74 while (isspace(*psz)) 75 psz++; 76 return psz; 117 char *psz = leftStrip(szLine); local 118 if (*psz 811 const char *psz = argv[i]; local [all...] |
| /vbox/src/VBox/Runtime/tools/ |
| H A D | RTLdrFlt.cpp | 49 * @param psz Where to start parsing. 53 static bool TryParseAddress(const char *psz, size_t *pcchAddress, uint64_t *pu64Address) argument 55 const char *pszStart = psz; 60 if (psz[0] == '0' && (psz[1] == 'x' || psz[1] == 'X')) 61 psz += 2; 67 while (RT_C_IS_XDIGIT(psz[off])) 76 && psz[off] == '\'' 77 && RT_C_IS_XDIGIT(psz[of 353 const char *psz = szLine; local [all...] |
| /vbox/src/VBox/Additions/WINNT/VBoxCredProv/ |
| H A D | VBoxCredProvUtils.cpp | 47 char *psz = NULL; local 48 RTStrAPrintfV(&psz, pszFormat, args); 51 AssertPtr(psz); 52 LogRel(("%s", psz)); 54 RTStrFree(psz);
|
| /vbox/src/VBox/Runtime/r3/linux/ |
| H A D | RTThreadGetNativeState-linux.cpp | 66 const char *psz = szName; local 67 while ( *psz 68 && ( *psz != ')' 69 || !RT_C_IS_SPACE(psz[1]) 70 || !RT_C_IS_ALPHA(psz[2]) 71 || !RT_C_IS_SPACE(psz[3]) 74 psz++; 75 if (*psz == ')') 77 switch (psz[2]) 98 AssertMsgFailed(("state=%c\n", psz[ [all...] |
| /vbox/src/VBox/Runtime/generic/ |
| H A D | strcache-stubs-generic.cpp | 73 RTDECL(const char *) RTStrCacheEnter(RTSTRCACHE hStrCache, const char *psz) 75 return RTStrCacheEnterN(hStrCache, psz, strlen(psz)); 94 RTDECL(const char *) RTStrCacheEnterLower(RTSTRCACHE hStrCache, const char *psz) 96 return RTStrCacheEnterLowerN(hStrCache, psz, strlen(psz)); 101 RTDECL(uint32_t) RTStrCacheRetain(const char *psz) 103 AssertPtr(psz); 104 return RTMemPoolRetain((void *)psz); 109 RTDECL(uint32_t) RTStrCacheRelease(RTSTRCACHE hStrCache, const char *psz) [all...] |
| /vbox/src/VBox/HostDrivers/Support/testcase/ |
| H A D | SUPLoggerCtl.cpp | 99 pszFlags = Val.psz; 103 pszGroups = Val.psz; 107 pszDest = Val.psz; 111 if (!strcmp(Val.psz, "set")) 113 else if (!strcmp(Val.psz, "create")) 115 else if (!strcmp(Val.psz, "destroy")) 119 RTStrmPrintf(g_pStdErr, "SUPLoggerCtl: error: Unknown operation '%s'.\n", Val.psz); 125 if (!strcmp(Val.psz, "debug")) 127 else if (!strcmp(Val.psz, "release")) 131 RTStrmPrintf(g_pStdErr, "SUPLoggerCtl: error: Unknown logger '%s'.\n", Val.psz); [all...] |