Searched defs:cchSrc (Results 1 - 16 of 16) sorted by relevance

/vbox/src/VBox/Runtime/common/string/
H A DRTStrCopy.cpp37 size_t cchSrc = strlen(pszSrc); local
38 if (RT_LIKELY(cchSrc < cbDst))
40 memcpy(pszDst, pszSrc, cchSrc + 1);
H A DRTStrCat.cpp41 size_t cchSrc = strlen(pszSrc); local
42 if (RT_LIKELY(cchSrc < cbDst))
44 memcpy(pszDst2, pszSrc, cchSrc + 1);
H A DRTStrCopyEx.cpp38 size_t cchSrc = pszSrcEol ? (size_t)(pszSrcEol - pszSrc) : cchMaxSrc; local
39 if (RT_LIKELY(cchSrc < cbDst))
41 memcpy(pszDst, pszSrc, cchSrc);
42 pszDst[cchSrc] = '\0';
H A DRTStrCopyP.cpp37 size_t const cchSrc = strlen(pszSrc); local
40 if (RT_LIKELY(cchSrc < cbDst))
42 memcpy(pszDst, pszSrc, cchSrc + 1);
43 *ppszDst = pszDst += cchSrc;
44 *pcbDst -= cchSrc;
H A DRTStrCatEx.cpp42 size_t cchSrc = pszSrcEol ? (size_t)(pszSrcEol - pszSrc) : cchMaxSrc; local
43 if (RT_LIKELY(cchSrc < cbDst))
45 memcpy(pszDst2, pszSrc, cchSrc);
46 pszDst2[cchSrc] = '\0';
H A DRTStrCopyPEx.cpp38 size_t cchSrc = pszSrcEol ? (size_t)(pszSrcEol - pszSrc) : cchMaxSrc; local
41 if (RT_LIKELY(cchSrc < cbDst))
43 memcpy(pszDst, pszSrc, cchSrc);
44 *ppszDst = pszDst += cchSrc;
46 *pcbDst -= cchSrc;
H A DRTUtf16CopyAscii.cpp38 size_t cchSrc = strlen(pszSrc); local
40 if (RT_LIKELY(cchSrc < cwcDst))
43 cchCopy = cchSrc;
/vbox/src/VBox/Runtime/generic/
H A DRTMpGetDescription-generic.cpp103 size_t cchSrc = strlen(pszSrc); local
104 if (cchSrc >= cbBuf)
106 memcpy(pszBuf, pszSrc, cchSrc + 1);
/vbox/src/VBox/Runtime/testcase/
H A DtstIprtMiniString.cpp469 size_t const cchSrc = pszCur - pszPrev; local
476 RTTESTI_CHECK_MSG(cchSrc >= cchDst,
478 ucLower, cchSrc, ucUpper, cchDst));
514 size_t const cchSrc = pszCur - pszPrev; local
521 RTTESTI_CHECK_MSG(cchSrc >= cchDst,
523 ucUpper, cchSrc, ucLower, cchDst));
/vbox/include/iprt/cpp/
H A Dministring.h934 * @param cchSrc The number of chars (bytes) to copy from the
940 void copyFromN(const char *pcszSrc, size_t cchSrc) argument
942 if (cchSrc)
944 m_psz = RTStrAlloc(cchSrc + 1);
947 m_cch = cchSrc;
948 m_cbAllocated = cchSrc + 1;
949 memcpy(m_psz, pcszSrc, cchSrc);
950 m_psz[cchSrc] = '\0';
/vbox/src/VBox/Devices/BiosCommonCode/
H A DMakeAlternativeSource.cpp1758 size_t cchSrc = offSrc; local
1759 while ((ch = pMap->szLine[cchSrc]) != ')' && ch != '\0')
1760 cchSrc++;
1761 cchSrc -= offSrc;
1765 PBIOSOBJFILE pObjFile = (PBIOSOBJFILE)RTMemAllocZ(sizeof(*pObjFile) + cchSrc + cchObj + 2);
1774 memcpy(psz, &pMap->szLine[offSrc], cchSrc);
1775 psz[cchSrc] = '\0';
/vbox/src/VBox/HostDrivers/Support/
H A DSUPR3HardenedMain.cpp209 size_t cchSrc = suplibHardenedStrLen(pszSrc); local
210 if (cchSrc < cbDst)
212 suplibHardenedMemCopy(pszDst, pszSrc, cchSrc);
213 pszDst += cchSrc;
214 cbDst -= cchSrc;
/vbox/src/VBox/HostServices/SharedFolders/
H A Dvbsf.cpp486 uint32_t cchSrc = pPath->u16Length; local
488 Log(("Root %s path %.*s\n", pszRoot, cchSrc, pszSrc));
490 while ( cchSrc > 0
494 cchSrc--;
499 cchFullPath = cchRoot + cchSrc;
510 if (cchSrc)
511 memcpy(&pszFullPath[cchRoot], pszSrc, cchSrc);
514 pszFullPath[cchRoot + cchSrc] = '\0';
/vbox/src/VBox/Runtime/common/asn1/
H A Dasn1-ut-string.cpp1025 static int rtIso2022RecodeAsUtf8(uint32_t uProfile, const char *pchSrc, uint32_t cchSrc, char *pszDst, size_t cbDst) argument
1031 int rc = rtIso2022Decoder_Init(&Decoder, pchSrc, cchSrc, 102, 106, 107, 102, NULL /*pErrInfo*/);
1104 static int rtWin1252RecodeAsUtf8(const char *pchSrc, uint32_t cchSrc, char *pszDst, size_t cbDst) argument
1106 while (cchSrc-- > 0)
1529 size_t cchSrc = pThis->Asn1Core.cb; local
1531 while (cchSrc > 0)
1539 cchSrc -= 4;
1548 size_t cchSrc = pThis->Asn1Core.cb; local
1550 while (cchSrc > 0)
1558 cchSrc
[all...]
/vbox/src/bldprogs/
H A Dscm.cpp456 size_t cchSrc = strlen(pszSrc); local
457 while (cchSrc > 0 && pszSrc[cchSrc - 1] == '|')
458 cchSrc--;
459 if (!cchSrc)
464 pszSrc, cchSrc);
H A DVBoxCPP.cpp697 * @param cchSrc The length of the substring.
699 static RTEXITCODE vbcppStrBufAppendN(PVBCPPSTRBUF pStrBuf, const char *pchSrc, size_t cchSrc) argument
702 if (cchBuf + cchSrc + 1 > pStrBuf->cbBufAllocated)
704 RTEXITCODE rcExit = vbcppStrBufGrow(pStrBuf, cchBuf + cchSrc + 1);
709 memcpy(&pStrBuf->pszBuf[cchBuf], pchSrc, cchSrc);
710 cchBuf += cchSrc;

Completed in 4304 milliseconds