Lines Matching refs:pSrc
405 const uint8_t* pSrc = (const uint8_t*) src;
446 while(((ch = *pSrc) != 0) && (pDest < pDestLimit)) {
449 ++pSrc;
454 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
455 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
459 pSrc += 3;
465 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
468 pSrc += 2;
474 ++pSrc; /* continue after the lead byte */
475 ch=utf8_nextCharSafeBodyTerminated(&pSrc, ch);
494 while((ch = *pSrc) != 0) {
497 ++pSrc;
502 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
503 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
506 pSrc += 3;
512 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
515 pSrc += 2;
521 ++pSrc; /* continue after the lead byte */
522 ch=utf8_nextCharSafeBodyTerminated(&pSrc, ch);
531 const uint8_t *pSrcLimit = pSrc + srcLength;
543 srcLength = (int32_t)((pSrcLimit - pSrc) / 3);
556 ch = *pSrc;
559 ++pSrc;
564 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
565 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
569 pSrc += 3;
575 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
578 pSrc += 2;
595 ++pSrc; /* continue after the lead byte */
596 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
610 while((pSrc<pSrcLimit) && (pDest<pDestLimit)) {
611 ch = *pSrc;
614 ++pSrc;
619 ((pSrcLimit - pSrc) >= 3) &&
620 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
621 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
625 pSrc += 3;
631 ((pSrcLimit - pSrc) >= 2) &&
632 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
635 pSrc += 2;
641 ++pSrc; /* continue after the lead byte */
642 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
660 while(pSrc < pSrcLimit){
661 ch = *pSrc;
664 ++pSrc;
669 ((pSrcLimit - pSrc) >= 3) &&
670 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
671 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
674 pSrc += 3;
680 ((pSrcLimit - pSrc) >= 2) &&
681 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
684 pSrc += 2;
690 ++pSrc; /* continue after the lead byte */
691 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
741 uint8_t* pSrc = (uint8_t*) src;
760 while(((ch = *pSrc) != 0) && (pDest < pDestLimit)) {
768 ++pSrc;
771 if((t1 = pSrc[1]) != 0) {
774 pSrc += 2;
778 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0) {
782 pSrc += 3;
786 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0 && (t3 = pSrc[3]) != 0) {
787 pSrc += 4;
803 while(*++pSrc != 0) {}
808 while((ch = *pSrc) != 0) {
816 ++pSrc;
819 if(pSrc[1] != 0) {
821 pSrc += 2;
825 if(pSrc[1] != 0 && pSrc[2] != 0) {
827 pSrc += 3;
831 if(pSrc[1] != 0 && pSrc[2] != 0 && pSrc[3] != 0) {
833 pSrc += 4;
843 const uint8_t *pSrcLimit = pSrc + srcLength;
858 if((pSrcLimit - pSrc) >= 4) {
861 /* in this loop, we can always access at least 4 bytes, up to pSrc+3 */
863 ch = *pSrc++;
873 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080);
877 ch = (ch << 12) + (*pSrc++ << 6);
878 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080);
881 ch = (ch << 18) + (*pSrc++ << 12);
882 ch += *pSrc++ << 6;
883 ch += *pSrc++ - 0x3c82080;
887 } while(pSrc < pSrcLimit);
892 while(pSrc < pSrcLimit) {
893 ch = *pSrc++;
903 if(pSrc < pSrcLimit) {
905 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080);
909 if((pSrcLimit - pSrc) >= 2) {
912 ch = (ch << 12) + (*pSrc++ << 6);
913 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080);
914 pSrc += 3;
918 if((pSrcLimit - pSrc) >= 3) {
920 ch = (ch << 18) + (*pSrc++ << 12);
921 ch += *pSrc++ << 6;
922 ch += *pSrc++ - 0x3c82080;
925 pSrc += 4;
974 const UChar *pSrc,
989 if( (pSrc==NULL && srcLength!=0) || srcLength < -1 ||
1003 while((ch=*pSrc)!=0) {
1004 ++pSrc;
1033 if(UTF_IS_SURROGATE_FIRST(ch) && UTF_IS_TRAIL(ch2=*pSrc)) {
1034 ++pSrc;
1055 while((ch=*pSrc++)!=0) {
1062 } else if(UTF_IS_SURROGATE_FIRST(ch) && UTF_IS_TRAIL(ch2=*pSrc)) {
1063 ++pSrc;
1075 const UChar *pSrcLimit = pSrc+srcLength;
1087 srcLength = (int32_t)(pSrcLimit - pSrc);
1099 ch=*pSrc++;
1116 --pSrc; /* undo ch=*pSrc++ for the lead surrogate */
1120 if(UTF_IS_SURROGATE_FIRST(ch) && UTF_IS_TRAIL(ch2=*pSrc)) {
1121 ++pSrc;
1146 while(pSrc<pSrcLimit) {
1147 ch=*pSrc++;
1175 if(UTF_IS_SURROGATE_FIRST(ch) && pSrc<pSrcLimit && UTF_IS_TRAIL(ch2=*pSrc)) {
1176 ++pSrc;
1197 while(pSrc<pSrcLimit) {
1198 ch=*pSrc++;
1205 } else if(UTF_IS_SURROGATE_FIRST(ch) && pSrc<pSrcLimit && UTF_IS_TRAIL(ch2=*pSrc)) {
1206 ++pSrc;
1238 const UChar *pSrc,
1243 pSrc, srcLength,
1261 const uint8_t* pSrc = (const uint8_t*) src;
1289 while(((ch = *pSrc) != 0) && ch <= 0x7f && (pDest < pDestLimit)) {
1291 ++pSrc;
1303 srcLength = uprv_strlen((const char *)pSrc);
1307 pSrcLimit = pSrc + srcLength;
1310 srcLength = (int32_t)(pSrcLimit - pSrc);
1311 if(count >= srcLength && srcLength > 0 && *pSrc <= 0x7f) {
1313 const uint8_t *prevSrc = pSrc;
1315 while(pSrc < pSrcLimit && (ch = *pSrc) <= 0x7f) {
1317 ++pSrc;
1319 delta = (int32_t)(pSrc - prevSrc);
1339 ch = *pSrc;
1342 ++pSrc;
1347 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
1348 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
1352 pSrc += 3;
1358 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
1361 pSrc += 2;
1377 ++pSrc; /* continue after the lead byte */
1378 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
1391 while((pSrc<pSrcLimit) && (pDest<pDestLimit)) {
1392 ch = *pSrc;
1395 ++pSrc;
1400 ((pSrcLimit - pSrc) >= 3) &&
1401 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
1402 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
1406 pSrc += 3;
1412 ((pSrcLimit - pSrc) >= 2) &&
1413 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
1416 pSrc += 2;
1426 ++pSrc; /* continue after the lead byte */
1427 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
1445 while(pSrc < pSrcLimit){
1446 ch = *pSrc;
1449 ++pSrc;
1454 ((pSrcLimit - pSrc) >= 3) &&
1455 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
1456 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
1459 pSrc += 3;
1465 ((pSrcLimit - pSrc) >= 2) &&
1466 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
1469 pSrc += 2;
1479 ++pSrc; /* continue after the lead byte */
1480 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);