• Home
  • Raw
  • Download

Lines Matching refs:cnv

233 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx,  in ucnv_extWriteToU()  argument
242 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU()
249 cnv, in ucnv_extWriteToU()
267 #define UCNV_SISO_STATE(cnv) \ argument
268 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \
269 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1)
275 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument
286 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU()
287 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU()
290 cnv->useFallback, flush); in ucnv_extInitialMatchToU()
296 ucnv_extWriteToU(cnv, cx, in ucnv_extInitialMatchToU()
308 s=(const char *)cnv->toUBytes; in ucnv_extInitialMatchToU()
309 cnv->preToUFirstLength=(int8_t)firstLength; in ucnv_extInitialMatchToU()
311 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
318 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
321 cnv->preToULength=(int8_t)match; in ucnv_extInitialMatchToU()
367 ucnv_extContinueMatchToU(UConverter *cnv, in ucnv_extContinueMatchToU() argument
373 match=ucnv_extMatchToU(cnv->sharedData->mbcs.extIndexes, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extContinueMatchToU()
374 cnv->preToU, cnv->preToULength, in ucnv_extContinueMatchToU()
377 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchToU()
379 if(match>=cnv->preToULength) { in ucnv_extContinueMatchToU()
381 pArgs->source+=match-cnv->preToULength; in ucnv_extContinueMatchToU()
382 cnv->preToULength=0; in ucnv_extContinueMatchToU()
385 length=cnv->preToULength-match; in ucnv_extContinueMatchToU()
386 uprv_memmove(cnv->preToU, cnv->preToU+match, length); in ucnv_extContinueMatchToU()
387 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
391 ucnv_extWriteToU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchToU()
404 for(j=cnv->preToULength; j<match; ++j) { in ucnv_extContinueMatchToU()
405 cnv->preToU[j]=*s++; in ucnv_extContinueMatchToU()
408 cnv->preToULength=(int8_t)match; in ucnv_extContinueMatchToU()
429 uprv_memcpy(cnv->toUBytes, cnv->preToU, cnv->preToUFirstLength); in ucnv_extContinueMatchToU()
430 cnv->toULength=cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
433 length=cnv->preToULength-cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
435 uprv_memmove(cnv->preToU, cnv->preToU+cnv->preToUFirstLength, length); in ucnv_extContinueMatchToU()
439 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
669 ucnv_extWriteFromU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteFromU() argument
707 if((prevLength=cnv->fromUnicodeStatus)!=0) { in ucnv_extWriteFromU()
714 cnv->fromUnicodeStatus=1; in ucnv_extWriteFromU()
718 cnv->fromUnicodeStatus=2; in ucnv_extWriteFromU()
734 ucnv_fromUWriteBytes(cnv, (const char *)result, length, in ucnv_extWriteFromU()
744 ucnv_extInitialMatchFromU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchFromU() argument
759 cnv->useFallback, flush); in ucnv_extInitialMatchFromU()
764 cnv->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY) in ucnv_extInitialMatchFromU()
770 ucnv_extWriteFromU(cnv, cx, in ucnv_extInitialMatchFromU()
782 cnv->preFromUFirstCP=cp; in ucnv_extInitialMatchFromU()
788 cnv->preFromU[j]=*s++; in ucnv_extInitialMatchFromU()
791 cnv->preFromULength=(int8_t)match; in ucnv_extInitialMatchFromU()
795 cnv->useSubChar1=TRUE; in ucnv_extInitialMatchFromU()
861 ucnv_extContinueMatchFromU(UConverter *cnv, in ucnv_extContinueMatchFromU() argument
867 match=ucnv_extMatchFromU(cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
868 cnv->preFromUFirstCP, in ucnv_extContinueMatchFromU()
869 cnv->preFromU, cnv->preFromULength, in ucnv_extContinueMatchFromU()
872 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchFromU()
876 if(match>=cnv->preFromULength) { in ucnv_extContinueMatchFromU()
878 pArgs->source+=match-cnv->preFromULength; in ucnv_extContinueMatchFromU()
879 cnv->preFromULength=0; in ucnv_extContinueMatchFromU()
882 int32_t length=cnv->preFromULength-match; in ucnv_extContinueMatchFromU()
883 uprv_memmove(cnv->preFromU, cnv->preFromU+match, length*U_SIZEOF_UCHAR); in ucnv_extContinueMatchFromU()
884 cnv->preFromULength=(int8_t)-length; in ucnv_extContinueMatchFromU()
888 cnv->preFromUFirstCP=U_SENTINEL; in ucnv_extContinueMatchFromU()
891 ucnv_extWriteFromU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
904 for(j=cnv->preFromULength; j<match; ++j) { in ucnv_extContinueMatchFromU()
905 cnv->preFromU[j]=*s++; in ucnv_extContinueMatchFromU()
908 cnv->preFromULength=(int8_t)match; in ucnv_extContinueMatchFromU()
930 cnv->useSubChar1=TRUE; in ucnv_extContinueMatchFromU()
934 cnv->fromUChar32=cnv->preFromUFirstCP; in ucnv_extContinueMatchFromU()
935 cnv->preFromUFirstCP=U_SENTINEL; in ucnv_extContinueMatchFromU()
938 cnv->preFromULength=-cnv->preFromULength; in ucnv_extContinueMatchFromU()