• Home
  • Raw
  • Download

Lines Matching refs:pSrc

563     uint8_t* pSrc = (uint8_t*) src;  in u_strFromUTF8Lenient()  local
582 while(((ch = *pSrc) != 0) && (pDest < pDestLimit)) { in u_strFromUTF8Lenient()
590 ++pSrc; in u_strFromUTF8Lenient()
593 if((t1 = pSrc[1]) != 0) { in u_strFromUTF8Lenient()
596 pSrc += 2; in u_strFromUTF8Lenient()
600 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0) { in u_strFromUTF8Lenient()
604 pSrc += 3; in u_strFromUTF8Lenient()
608 if((t1 = pSrc[1]) != 0 && (t2 = pSrc[2]) != 0 && (t3 = pSrc[3]) != 0) { in u_strFromUTF8Lenient()
609 pSrc += 4; in u_strFromUTF8Lenient()
625 while(*++pSrc != 0) {} in u_strFromUTF8Lenient()
630 while((ch = *pSrc) != 0) { in u_strFromUTF8Lenient()
638 ++pSrc; in u_strFromUTF8Lenient()
641 if(pSrc[1] != 0) { in u_strFromUTF8Lenient()
643 pSrc += 2; in u_strFromUTF8Lenient()
647 if(pSrc[1] != 0 && pSrc[2] != 0) { in u_strFromUTF8Lenient()
649 pSrc += 3; in u_strFromUTF8Lenient()
653 if(pSrc[1] != 0 && pSrc[2] != 0 && pSrc[3] != 0) { in u_strFromUTF8Lenient()
655 pSrc += 4; in u_strFromUTF8Lenient()
665 const uint8_t *pSrcLimit = (pSrc!=NULL)?(pSrc + srcLength):NULL; in u_strFromUTF8Lenient()
680 if((pSrcLimit - pSrc) >= 4) { in u_strFromUTF8Lenient()
685 ch = *pSrc++; in u_strFromUTF8Lenient()
695 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080); in u_strFromUTF8Lenient()
699 ch = (ch << 12) + (*pSrc++ << 6); in u_strFromUTF8Lenient()
700 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080); in u_strFromUTF8Lenient()
703 ch = (ch << 18) + (*pSrc++ << 12); in u_strFromUTF8Lenient()
704 ch += *pSrc++ << 6; in u_strFromUTF8Lenient()
705 ch += *pSrc++ - 0x3c82080; in u_strFromUTF8Lenient()
709 } while(pSrc < pSrcLimit); in u_strFromUTF8Lenient()
714 while(pSrc < pSrcLimit) { in u_strFromUTF8Lenient()
715 ch = *pSrc++; in u_strFromUTF8Lenient()
725 if(pSrc < pSrcLimit) { in u_strFromUTF8Lenient()
727 *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080); in u_strFromUTF8Lenient()
731 if((pSrcLimit - pSrc) >= 2) { in u_strFromUTF8Lenient()
734 ch = (ch << 12) + (*pSrc++ << 6); in u_strFromUTF8Lenient()
735 *pDest++ = (UChar)(ch + *pSrc++ - 0x2080); in u_strFromUTF8Lenient()
736 pSrc += 3; in u_strFromUTF8Lenient()
740 if((pSrcLimit - pSrc) >= 3) { in u_strFromUTF8Lenient()
742 ch = (ch << 18) + (*pSrc++ << 12); in u_strFromUTF8Lenient()
743 ch += *pSrc++ << 6; in u_strFromUTF8Lenient()
744 ch += *pSrc++ - 0x3c82080; in u_strFromUTF8Lenient()
747 pSrc += 4; in u_strFromUTF8Lenient()
796 const UChar *pSrc, in u_strToUTF8WithSub() argument
811 if( (pSrc==NULL && srcLength!=0) || srcLength < -1 || in u_strToUTF8WithSub()
825 while((ch=*pSrc)!=0) { in u_strToUTF8WithSub()
826 ++pSrc; in u_strToUTF8WithSub()
855 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
856 ++pSrc; in u_strToUTF8WithSub()
877 while((ch=*pSrc++)!=0) { in u_strToUTF8WithSub()
884 } else if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
885 ++pSrc; in u_strToUTF8WithSub()
897 const UChar *pSrcLimit = (pSrc!=NULL)?(pSrc+srcLength):NULL; in u_strToUTF8WithSub()
909 srcLength = (int32_t)(pSrcLimit - pSrc); in u_strToUTF8WithSub()
921 ch=*pSrc++; in u_strToUTF8WithSub()
938 --pSrc; /* undo ch=*pSrc++ for the lead surrogate */ in u_strToUTF8WithSub()
942 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
943 ++pSrc; in u_strToUTF8WithSub()
968 while(pSrc<pSrcLimit) { in u_strToUTF8WithSub()
969 ch=*pSrc++; in u_strToUTF8WithSub()
997 if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
998 ++pSrc; in u_strToUTF8WithSub()
1019 while(pSrc<pSrcLimit) { in u_strToUTF8WithSub()
1020 ch=*pSrc++; in u_strToUTF8WithSub()
1027 } else if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
1028 ++pSrc; in u_strToUTF8WithSub()
1060 const UChar *pSrc, in u_strToUTF8() argument
1065 pSrc, srcLength, in u_strToUTF8()