Lines Matching refs:cbLen
74 size_t cbLen = RT_MIN(strlen(pszString), cchMax);
76 char *pszNew = (char*)RTMemAlloc(cbLen * 3 + 1);
82 while(iIn < cbLen)
120 size_t cbLen = RT_MIN(strlen(pszString), cchMax);
122 char *pszNew = (char*)RTMemAlloc(cbLen + 1);
128 while(iIn < cbLen)
169 static bool rtUriFindSchemeEnd(const char *pszUri, size_t iStart, size_t cbLen, size_t *piEnd)
173 while(i < iStart + cbLen)
185 static bool rtUriCheckAuthorityStart(const char *pszUri, size_t iStart, size_t cbLen, size_t *piStart)
188 if ( cbLen >= 2
199 static bool rtUriFindAuthorityEnd(const char *pszUri, size_t iStart, size_t cbLen, size_t *piEnd)
203 while(i < iStart + cbLen)
217 static bool rtUriCheckPathStart(const char *pszUri, size_t iStart, size_t cbLen, size_t *piStart)
220 if ( cbLen >= 1
227 if ( cbLen >= 1
236 static bool rtUriFindPathEnd(const char *pszUri, size_t iStart, size_t cbLen, size_t *piEnd)
240 while(i < iStart + cbLen)
253 static bool rtUriCheckQueryStart(const char *pszUri, size_t iStart, size_t cbLen, size_t *piStart)
256 if ( cbLen >= 1
265 static bool rtUriFindQueryEnd(const char *pszUri, size_t iStart, size_t cbLen, size_t *piEnd)
269 while(i < iStart + cbLen)
281 static bool rtUriCheckFragmentStart(const char *pszUri, size_t iStart, size_t cbLen, size_t *piStart)
284 if ( cbLen >= 1
403 size_t cbLen = strlen(pszUri);
404 if (rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
414 size_t cbLen = strlen(pszUri);
416 if (!rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
423 if (rtUriCheckAuthorityStart(pszUri, iPos1, cbLen - iPos1, &iPos2))
425 size_t iPos3 = cbLen;
428 rtUriFindAuthorityEnd(pszUri, iPos2, cbLen - iPos2, &iPos3);
442 size_t cbLen = strlen(pszUri);
444 if (!rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
452 if (rtUriCheckAuthorityStart(pszUri, iPos1, cbLen - iPos1, &iPos2))
456 if (!rtUriFindAuthorityEnd(pszUri, iPos2, cbLen - iPos2, &iPos3))
462 if (rtUriCheckPathStart(pszUri, iPos3, cbLen - iPos3, &iPos4))
465 size_t iPos5 = cbLen;
466 rtUriFindPathEnd(pszUri, iPos4, cbLen - iPos4, &iPos5);
479 size_t cbLen = strlen(pszUri);
481 if (!rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
489 if (rtUriCheckAuthorityStart(pszUri, iPos1, cbLen - iPos1, &iPos2))
493 if (!rtUriFindAuthorityEnd(pszUri, iPos2, cbLen - iPos2, &iPos3))
500 if (rtUriCheckPathStart(pszUri, iPos3, cbLen - iPos3, &iPos4))
504 if (!rtUriFindPathEnd(pszUri, iPos4, cbLen - iPos4, &iPos5))
510 if (rtUriCheckQueryStart(pszUri, iPos5, cbLen - iPos5, &iPos6))
513 size_t iPos7 = cbLen;
514 rtUriFindQueryEnd(pszUri, iPos6, cbLen - iPos6, &iPos7);
527 size_t cbLen = strlen(pszUri);
529 if (!rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
537 if (rtUriCheckAuthorityStart(pszUri, iPos1, cbLen - iPos1, &iPos2))
541 if (!rtUriFindAuthorityEnd(pszUri, iPos2, cbLen - iPos2, &iPos3))
548 if (rtUriCheckPathStart(pszUri, iPos3, cbLen - iPos3, &iPos4))
552 if (!rtUriFindPathEnd(pszUri, iPos4, cbLen - iPos4, &iPos5))
559 if (rtUriCheckQueryStart(pszUri, iPos5, cbLen - iPos5, &iPos6))
563 if (!rtUriFindQueryEnd(pszUri, iPos6, cbLen - iPos6, &iPos7))
570 if (rtUriCheckFragmentStart(pszUri, iPos7, cbLen - iPos7, &iPos8))
574 if (cbLen > iPos8) /* Length check */
575 return rtUriPercentDecodeN(&pszUri[iPos8], cbLen - iPos8);
629 size_t cbLen = RT_MIN(strlen(pszUri), cchMax);
631 if (!rtUriFindSchemeEnd(pszUri, 0, cbLen, &iPos1))
643 if (rtUriCheckAuthorityStart(pszUri, iPos1, cbLen - iPos1, &iPos2))
647 if (!rtUriFindAuthorityEnd(pszUri, iPos2, cbLen - iPos2, &iPos3))
653 if (rtUriCheckPathStart(pszUri, iPos3, cbLen - iPos3, &iPos4))
668 size_t iPos5 = cbLen;
669 rtUriFindPathEnd(pszUri, iPos4, cbLen - iPos4, &iPos5);