Lines Matching refs:pSrc
411 const uint8_t* pSrc = (const uint8_t*) src;
452 while(((ch = *pSrc) != 0) && (pDest < pDestLimit)) {
455 ++pSrc;
460 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
461 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
465 pSrc += 3;
471 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
474 pSrc += 2;
480 ++pSrc; /* continue after the lead byte */
481 ch=utf8_nextCharSafeBodyTerminated(&pSrc, ch);
500 while((ch = *pSrc) != 0) {
503 ++pSrc;
508 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
509 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
512 pSrc += 3;
518 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
521 pSrc += 2;
527 ++pSrc
528 ch=utf8_nextCharSafeBodyTerminated(&pSrc, ch);
537 const uint8_t *pSrcLimit = pSrc + srcLength;
549 srcLength = (int32_t)((pSrcLimit - pSrc) / 3);
562 ch = *pSrc;
565 ++pSrc;
570 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
571 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
575 pSrc += 3;
581 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
584 pSrc += 2;
601 ++pSrc; /* continue after the lead byte */
602 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
616 while((pSrc<pSrcLimit) && (pDest<pDestLimit)) {
617 ch = *pSrc;
620 ++pSrc;
625 ((pSrcLimit - pSrc) >= 3) &&
626 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
627 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
631 pSrc += 3;
637 ((pSrcLimit - pSrc) >= 2) &&
638 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
641 pSrc += 2;
647 ++pSrc; /* continue after the lead byte */
648 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
666 while(pSrc < pSrcLimit){
667 ch = *pSrc;
670 ++pSrc;
675 ((pSrcLimit - pSrc) >= 3) &&
676 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
677 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
680 pSrc += 3;
686 ((pSrcLimit - pSrc) >= 2) &&
687 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
690 pSrc += 2;
696 ++pSrc; /* continue after the lead byte */
697 ch=utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
747 uint8_t* pSrc = (uint8_t*) src;
766 while(((ch = *pSrc) != 0) && (pDest < pDestLimit)) {
774 ++pSrc;
777 if((t1 = pSrc[1]) != 0) {
780 pSrc += 2;
784 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0) {
788 pSrc += 3;
792 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0 && (t3 = pSrc[3]) != 0) {
793 pSrc += 4;
809 while(*++pSrc != 0) {}
814 while((ch = *pSrc) != 0) {
822 ++pSrc;
825 if(pSrc[1] != 0) {
827 pSrc += 2;
831 if(pSrc[1] != 0 && pSrc[2] != 0) {
833 pSrc += 3;
837 if(pSrc[1] != 0 && pSrc[2] != 0 && pSrc[3] != 0) {
839 pSrc += 4;
849 const uint8_t *pSrcLimit = (pSrc!=NULL)?(pSrc + srcLength):NULL;
864 if((pSrcLimit - pSrc) >= 4) {
867 /* in this loop, we can always access at least 4 bytes, up to pSrc+3 */
869 ch = *pSrc++;
879 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080);
883 ch = (ch << 12) + (*pSrc++ << 6);
884 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080);
887 ch = (ch << 18) + (*pSrc++ << 12);
888 ch += *pSrc++ << 6;
889 ch += *pSrc++ - 0x3c82080;
893 } while(pSrc < pSrcLimit);
898 while(pSrc < pSrcLimit) {
899 ch = *pSrc++;
909 if(pSrc < pSrcLimit) {
911 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080);
915 if((pSrcLimit - pSrc) >= 2) {
918 ch = (ch << 12) + (*pSrc++ << 6);
919 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080);
920 pSrc += 3;
924 if((pSrcLimit - pSrc) >= 3) {
926 ch = (ch << 18) + (*pSrc++ << 12);
927 ch += *pSrc++ << 6;
928 ch += *pSrc++ - 0x3c82080;
931 pSrc += 4;
980 const UChar *pSrc,
995 if( (pSrc==NULL && srcLength!=0) || srcLength < -1 ||
1009 while((ch=*pSrc)!=0) {
1010 ++pSrc;
1039 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) {
1040 ++pSrc;
1061 while((ch=*pSrc++)!=0) {
1068 } else if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) {
1069 ++pSrc;
1081 const UChar *pSrcLimit = (pSrc!=NULL)?(pSrc+srcLength):NULL;
1093 srcLength = (int32_t)(pSrcLimit - pSrc);
1105 ch=*pSrc++;
1122 --pSrc; /* undo ch=*pSrc++ for the lead surrogate */
1126 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) {
1127 ++pSrc;
1152 while(pSrc<pSrcLimit) {
1153 ch=*pSrc++;
1181 if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) {
1182 ++pSrc;
1203 while(pSrc<pSrcLimit) {
1204 ch=*pSrc++;
1211 } else if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) {
1212 ++pSrc;
1244 const UChar *pSrc,
1249 pSrc, srcLength,
1267 const uint8_t* pSrc = (const uint8_t*) src;
1295 while(((ch = *pSrc) != 0) && ch <= 0x7f && (pDest < pDestLimit)) {
1297 ++pSrc;
1309 srcLength = uprv_strlen((const char *)pSrc);
1313 pSrcLimit = (pSrc == NULL) ? NULL : pSrc + srcLength;
1316 srcLength = (int32_t)(pSrcLimit - pSrc);
1317 if(count >= srcLength && srcLength > 0 && *pSrc <= 0x7f) {
1319 const uint8_t *prevSrc = pSrc;
1321 while(pSrc < pSrcLimit && (ch = *pSrc) <= 0x7f) {
1323 ++pSrc;
1325 delta = (int32_t)(pSrc - prevSrc);
1345 ch = *pSrc;
1348 ++pSrc;
1353 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
1354 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
1358 pSrc += 3;
1364 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
1367 pSrc += 2;
1383 ++pSrc; /* continue after the lead byte */
1384 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
1397 while((pSrc<pSrcLimit) && (pDest<pDestLimit)) {
1398 ch = *pSrc;
1401 ++pSrc;
1406 ((pSrcLimit - pSrc) >= 3) &&
1407 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f &&
1408 (t2 = (uint8_t)(pSrc[2] - 0x80)) <= 0x3f
1412 pSrc += 3;
1418 ((pSrcLimit - pSrc) >= 2) &&
1419 (t1 = (uint8_t)(pSrc[1] - 0x80)) <= 0x3f
1422 pSrc
1432 ++pSrc; /* continue after the lead byte */
1433 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);
1451 while(pSrc < pSrcLimit){
1452 ch = *pSrc;
1455 ++pSrc;
1460 ((pSrcLimit - pSrc) >= 3) &&
1461 (uint8_t)(pSrc[1] - 0x80) <= 0x3f &&
1462 (uint8_t)(pSrc[2] - 0x80) <= 0x3f
1465 pSrc += 3;
1471 ((pSrcLimit - pSrc) >= 2) &&
1472 (uint8_t)(pSrc[1] - 0x80) <= 0x3f
1475 pSrc += 2;
1485 ++pSrc; /* continue after the lead byte */
1486 utf8_nextCharSafeBodyPointer(&pSrc, pSrcLimit, ch);