Lines Matching refs:source

38     const uint8_t *source;  in _Latin1ToUnicodeWithOffsets()  local
46 source=(const uint8_t *)pArgs->source; in _Latin1ToUnicodeWithOffsets()
57 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _Latin1ToUnicodeWithOffsets()
73 target[0]=source[0]; in _Latin1ToUnicodeWithOffsets()
74 target[1]=source[1]; in _Latin1ToUnicodeWithOffsets()
75 target[2]=source[2]; in _Latin1ToUnicodeWithOffsets()
76 target[3]=source[3]; in _Latin1ToUnicodeWithOffsets()
77 target[4]=source[4]; in _Latin1ToUnicodeWithOffsets()
78 target[5]=source[5]; in _Latin1ToUnicodeWithOffsets()
79 target[6]=source[6]; in _Latin1ToUnicodeWithOffsets()
80 target[7]=source[7]; in _Latin1ToUnicodeWithOffsets()
82 source+=8; in _Latin1ToUnicodeWithOffsets()
102 *target++=*source++; in _Latin1ToUnicodeWithOffsets()
107 pArgs->source=(const char *)source; in _Latin1ToUnicodeWithOffsets()
124 const uint8_t *source=(const uint8_t *)pArgs->source; in _Latin1GetNextUChar() local
125 if(source<(const uint8_t *)pArgs->sourceLimit) { in _Latin1GetNextUChar()
126 pArgs->source=(const char *)(source+1); in _Latin1GetNextUChar()
127 return *source; in _Latin1GetNextUChar()
140 const UChar *source, *sourceLimit; in _Latin1FromUnicodeWithOffsets() local
152 source=pArgs->source; in _Latin1FromUnicodeWithOffsets()
174 length=(int32_t)(sourceLimit-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()
220 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
222 oredChars|=u=*source++; in _Latin1FromUnicodeWithOffsets()
228 source-=16; in _Latin1FromUnicodeWithOffsets()
263 while(targetCapacity>0 && (c=*source++)<=max) { in _Latin1FromUnicodeWithOffsets()
275 if(source<sourceLimit) { in _Latin1FromUnicodeWithOffsets()
277 UChar trail=*source; in _Latin1FromUnicodeWithOffsets()
279 ++source; in _Latin1FromUnicodeWithOffsets()
311 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
317 pArgs->source=source; in _Latin1FromUnicodeWithOffsets()
328 const uint8_t *source, *sourceLimit; in ucnv_Latin1FromUTF8() local
337 source=(uint8_t *)pToUArgs->source; in ucnv_Latin1FromUTF8()
348 if(c!=0 && source<sourceLimit) { in ucnv_Latin1FromUTF8()
352 } else if(c>=0xc2 && c<=0xc3 && (t1=(uint8_t)(*source-0x80)) <= 0x3f) { in ucnv_Latin1FromUTF8()
353 ++source; in ucnv_Latin1FromUTF8()
374 if(source<sourceLimit && U8_IS_LEAD(*(sourceLimit-1))) { in ucnv_Latin1FromUTF8()
379 while(source<sourceLimit) { in ucnv_Latin1FromUTF8()
381 b=*source++; in ucnv_Latin1FromUTF8()
388 (t1=(uint8_t)(*source-0x80)) <= 0x3f in ucnv_Latin1FromUTF8()
390 ++source; in ucnv_Latin1FromUTF8()
395 pToUArgs->source=(char *)(source-1); in ucnv_Latin1FromUTF8()
414 if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) { in ucnv_Latin1FromUTF8()
415 utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++; in ucnv_Latin1FromUTF8()
421 pToUArgs->source=(char *)source; in ucnv_Latin1FromUTF8()
484 const uint8_t *source, *sourceLimit; in _ASCIIToUnicodeWithOffsets() local
494 source=(const uint8_t *)pArgs->source; in _ASCIIToUnicodeWithOffsets()
507 length=(int32_t)(sourceLimit-source); in _ASCIIToUnicodeWithOffsets()
519 oredChars=target[0]=source[0]; in _ASCIIToUnicodeWithOffsets()
520 oredChars|=target[1]=source[1]; in _ASCIIToUnicodeWithOffsets()
521 oredChars|=target[2]=source[2]; in _ASCIIToUnicodeWithOffsets()
522 oredChars|=target[3]=source[3]; in _ASCIIToUnicodeWithOffsets()
523 oredChars|=target[4]=source[4]; in _ASCIIToUnicodeWithOffsets()
524 oredChars|=target[5]=source[5]; in _ASCIIToUnicodeWithOffsets()
525 oredChars|=target[6]=source[6]; in _ASCIIToUnicodeWithOffsets()
526 oredChars|=target[7]=source[7]; in _ASCIIToUnicodeWithOffsets()
533 source+=8; in _ASCIIToUnicodeWithOffsets()
558 while(targetCapacity>0 && (c=*source++)<=0x7f) { in _ASCIIToUnicodeWithOffsets()
569 } else if(source<sourceLimit && target>=pArgs->targetLimit) { in _ASCIIToUnicodeWithOffsets()
584 pArgs->source=(const char *)source; in _ASCIIToUnicodeWithOffsets()
593 const uint8_t *source; in _ASCIIGetNextUChar() local
596 source=(const uint8_t *)pArgs->source; in _ASCIIGetNextUChar()
597 if(source<(const uint8_t *)pArgs->sourceLimit) { in _ASCIIGetNextUChar()
598 b=*source++; in _ASCIIGetNextUChar()
599 pArgs->source=(const char *)source; in _ASCIIGetNextUChar()
621 const uint8_t *source, *sourceLimit; in ucnv_ASCIIFromUTF8() local
634 source=(const uint8_t *)pToUArgs->source; in ucnv_ASCIIFromUTF8()
643 length=(int32_t)(sourceLimit-source); in ucnv_ASCIIFromUTF8()
655 oredChars=*target++=*source++; in ucnv_ASCIIFromUTF8()
656 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
657 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
658 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
659 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
660 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
661 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
662 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
663 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
664 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
665 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
666 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
667 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
668 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
669 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
670 oredChars|=*target++=*source++; in ucnv_ASCIIFromUTF8()
675 source-=16; in ucnv_ASCIIFromUTF8()
686 while(targetCapacity>0 && (c=*source)<=0x7f) { in ucnv_ASCIIFromUTF8()
687 ++source; in ucnv_ASCIIFromUTF8()
695 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) { in ucnv_ASCIIFromUTF8()
701 pToUArgs->source=(const char *)source; in ucnv_ASCIIFromUTF8()