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