Lines Matching refs:strDest
21 SECUREC_INLINE errno_t SecDoCatLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size… in SecDoCatLimitW() argument
26 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatLimitW()
29 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimitW()
30 strDest[0] = L'\0'; in SecDoCatLimitW()
31 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimitW()
38 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimitW()
39 strDest[0] = L'\0'; in SecDoCatLimitW()
47 … SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoCatLimitW()
48 *(strDest + destLen + srcLen) = L'\0'; in SecDoCatLimitW()
87 errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in wcsncat_s() argument
93 if (strDest == NULL || strSrc == NULL) { in wcsncat_s()
95 if (strDest != NULL) { in wcsncat_s()
96 strDest[0] = L'\0'; in wcsncat_s()
105 return SecDoCatLimitW(strDest, destMax, strSrc, destMax); in wcsncat_s()
108 strDest[0] = L'\0'; in wcsncat_s()
112 return SecDoCatLimitW(strDest, destMax, strSrc, count); in wcsncat_s()