Lines Matching refs:source
34 const uint8_t *source; in _Latin1ToUnicodeWithOffsets() local
42 source=(const uint8_t *)pArgs->source; in _Latin1ToUnicodeWithOffsets()
53 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _Latin1ToUnicodeWithOffsets()
69 target[0]=source[0]; in _Latin1ToUnicodeWithOffsets()
70 target[1]=source[1]; in _Latin1ToUnicodeWithOffsets()
71 target[2]=source[2]; in _Latin1ToUnicodeWithOffsets()
72 target[3]=source[3]; in _Latin1ToUnicodeWithOffsets()
73 target[4]=source[4]; in _Latin1ToUnicodeWithOffsets()
74 target[5]=source[5]; in _Latin1ToUnicodeWithOffsets()
75 target[6]=source[6]; in _Latin1ToUnicodeWithOffsets()
76 target[7]=source[7]; in _Latin1ToUnicodeWithOffsets()
78 source+=8; in _Latin1ToUnicodeWithOffsets()
98 *target++=*source++; in _Latin1ToUnicodeWithOffsets()
103 pArgs->source=(const char *)source; in _Latin1ToUnicodeWithOffsets()
120 const uint8_t *source=(const uint8_t *)pArgs->source; in _Latin1GetNextUChar() local
121 if(source<(const uint8_t *)pArgs->sourceLimit) { in _Latin1GetNextUChar()
122 pArgs->source=(const char *)(source+1); in _Latin1GetNextUChar()
123 return *source; in _Latin1GetNextUChar()
136 const UChar *source, *sourceLimit; in _Latin1FromUnicodeWithOffsets() local
148 source=pArgs->source; in _Latin1FromUnicodeWithOffsets()
170 length=(int32_t)(sourceLimit-source); in _Latin1FromUnicodeWithOffsets()
188 oredChars=u=*source++; in _Latin1FromUnicodeWithOffsets()
190 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
192 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
194 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
196 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
198 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
200 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
202 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
204 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
206 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
208 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
210 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
212 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
214 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
216 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
218 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
224 source-=16; in _Latin1FromUnicodeWithOffsets()
259 while(targetCapacity>0 && (c=*source++)<=max) { in _Latin1FromUnicodeWithOffsets()
271 if(source<sourceLimit) { in _Latin1FromUnicodeWithOffsets()
273 UChar trail=*source; in _Latin1FromUnicodeWithOffsets()
275 ++source; in _Latin1FromUnicodeWithOffsets()
307 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
313 pArgs->source=source; in _Latin1FromUnicodeWithOffsets()
324 const uint8_t *source, *sourceLimit; in ucnv_Latin1FromUTF8() local
333 source=(uint8_t *)pToUArgs->source; in ucnv_Latin1FromUTF8()
340 if(c!=0 && source<sourceLimit) { in ucnv_Latin1FromUTF8()
344 } else if(c>=0xc2 && c<=0xc3 && (t1=(uint8_t)(*source-0x80)) <= 0x3f) { in ucnv_Latin1FromUTF8()
345 ++source; in ucnv_Latin1FromUTF8()
366 if(source<sourceLimit && U8_IS_LEAD(*(sourceLimit-1))) { in ucnv_Latin1FromUTF8()
371 while(source<sourceLimit) { in ucnv_Latin1FromUTF8()
373 b=*source++; in ucnv_Latin1FromUTF8()
380 (t1=(uint8_t)(*source-0x80)) <= 0x3f in ucnv_Latin1FromUTF8()
382 ++source; in ucnv_Latin1FromUTF8()
387 pToUArgs->source=(char *)(source-1); in ucnv_Latin1FromUTF8()
406 if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) { in ucnv_Latin1FromUTF8()
407 utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++; in ucnv_Latin1FromUTF8()
413 pToUArgs->source=(char *)source; in ucnv_Latin1FromUTF8()
470 const uint8_t *source, *sourceLimit; in _ASCIIToUnicodeWithOffsets() local
480 source=(const uint8_t *)pArgs->source; in _ASCIIToUnicodeWithOffsets()
493 length=(int32_t)(sourceLimit-source); in _ASCIIToUnicodeWithOffsets()
505 oredChars=target[0]=source[0]; in _ASCIIToUnicodeWithOffsets()
506 oredChars|=target[1]=source[1]; in _ASCIIToUnicodeWithOffsets()
507 oredChars|=target[2]=source[2]; in _ASCIIToUnicodeWithOffsets()
508 oredChars|=target[3]=source[3]; in _ASCIIToUnicodeWithOffsets()
509 oredChars|=target[4]=source[4]; in _ASCIIToUnicodeWithOffsets()
510 oredChars|=target[5]=source[5]; in _ASCIIToUnicodeWithOffsets()
511 oredChars|=target[6]=source[6]; in _ASCIIToUnicodeWithOffsets()
512 oredChars|=target[7]=source[7]; in _ASCIIToUnicodeWithOffsets()
519 source+=8; in _ASCIIToUnicodeWithOffsets()
544 while(targetCapacity>0 && (c=*source++)<=0x7f) { in _ASCIIToUnicodeWithOffsets()
555 } else if(source<sourceLimit && target>=pArgs->targetLimit) { in _ASCIIToUnicodeWithOffsets()
570 pArgs->source=(const char *)source; in _ASCIIToUnicodeWithOffsets()
579 const uint8_t *source; in _ASCIIGetNextUChar() local
582 source=(const uint8_t *)pArgs->source; in _ASCIIGetNextUChar()
583 if(source<(const uint8_t *)pArgs->sourceLimit) { in _ASCIIGetNextUChar()
584 b=*source++; in _ASCIIGetNextUChar()
585 pArgs->source=(const char *)source; in _ASCIIGetNextUChar()
607 const uint8_t *source, *sourceLimit; in ucnv_ASCIIFromUTF8() local
620 source=(const uint8_t *)pToUArgs->source; in ucnv_ASCIIFromUTF8()
629 length=(int32_t)(sourceLimit-source); in ucnv_ASCIIFromUTF8()
641 oredChars=*target++=*source++; in ucnv_ASCIIFromUTF8()
642 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
643 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
644 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
645 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
646 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
647 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
648 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
649 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
650 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
651 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
652 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
653 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
654 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
655 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
656 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
661 source-=16; in ucnv_ASCIIFromUTF8()
672 while(targetCapacity>0 && (c=*source)<=0x7f) { in ucnv_ASCIIFromUTF8()
673 ++source; in ucnv_ASCIIFromUTF8()
681 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) { in ucnv_ASCIIFromUTF8()
687 pToUArgs->source=(const char *)source; in ucnv_ASCIIFromUTF8()