Lines Matching defs:cch

995 static int rtIso2022ValidateString(uint32_t uProfile, const char *pch, uint32_t cch, size_t *pcchUtf8, PRTERRINFO pErrInfo)
1000 int rc = rtIso2022Decoder_Init(&Decoder, pch, cch, 102, 106, 107, 102, pErrInfo);
1084 static size_t rtWin1252CalcUtf8Length(const char *pch, uint32_t cch)
1087 while (cch-- > 0)
1168 * @param cch The string length.
1176 static RTASN1TELETEXVARIANT rtAsn1String_IsTeletexLatin1(const char *pch, uint32_t cch)
1179 while (cch-- > 0)
1229 uint32_t cch = pThis->Asn1Core.cb;
1230 size_t cchUtf8 = cch;
1236 rc = RTStrValidateEncodingEx(pch, cch, 0);
1243 while (cch-- > 0)
1254 while (cch-- > 0)
1277 while (cch-- > 0)
1287 switch (rtAsn1String_IsTeletexLatin1(pch, cch))
1290 rc = rtIso2022ValidateString(ASN1_TAG_T61_STRING, pch, cch, &cchUtf8, pErrInfo);
1297 cchUtf8 = rtWin1252CalcUtf8Length(pch, cch);
1307 while (cch-- > 0)
1320 if (!(cch & 3))
1324 while (cch > 0)
1334 cch -= 4;
1339 "%s: Bad universal string: size not a multiple of 4: cch=%#x", pszErrorTag, cch);
1342 if (!(cch & 1))
1346 while (cch > 0)
1356 cch -= 2;
1361 "%s: Bad BMP string: odd number of bytes cch=%#x", pszErrorTag, cch);
1429 uint32_t cch = pThis->Asn1Core.cb;
1437 iDiff = strncmp(pch, pszString, RT_MIN(cch, cchString));
1438 if (iDiff && cch != cchString)
1439 iDiff = cch < cchString ? - 1 : 1;
1476 size_t cch = pThis->cchUtf8;
1484 int rc = rtAsn1String_CheckSanity(pThis, NULL, NULL, &cch);
1488 rc = RTAsn1MemAllocZ(&pThisNC->Allocation, (void **)&psz, cch + 1);
1501 Assert(cch == pThis->Asn1Core.cb);
1502 memcpy(psz, pThis->Asn1Core.uData.pch, cch);
1503 psz[cch] = '\0';
1511 psz, cch + 1);
1516 rc = rtWin1252RecodeAsUtf8(pThis->Asn1Core.uData.pch, pThis->Asn1Core.cb, psz, cch + 1);
1541 Assert((size_t)(pszDst - psz) == cch);
1560 Assert((size_t)(pszDst - psz) == cch);
1573 pThisNC->cchUtf8 = (uint32_t)cch;
1588 *pcch = cch;
1598 size_t cch = pThis->cchUtf8;
1599 if (!cch && !pThis->pszUtf8)
1601 int rc = rtAsn1String_CheckSanity(pThis, NULL, NULL, &cch);
1606 *pcch = cch;