• Home
  • Raw
  • Download

Lines Matching refs:cnv

234 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx,  in ucnv_extWriteToU()  argument
243 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU()
250 cnv, in ucnv_extWriteToU()
268 #define UCNV_SISO_STATE(cnv) \ argument
269 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \
270 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1)
276 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument
287 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU()
288 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU()
291 cnv->useFallback, flush); in ucnv_extInitialMatchToU()
297 ucnv_extWriteToU(cnv, cx, in ucnv_extInitialMatchToU()
309 s=(const char *)cnv->toUBytes; in ucnv_extInitialMatchToU()
310 cnv->preToUFirstLength=(int8_t)firstLength; in ucnv_extInitialMatchToU()
312 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
319 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
322 cnv->preToULength=(int8_t)match; in ucnv_extInitialMatchToU()
368 ucnv_extContinueMatchToU(UConverter *cnv, in ucnv_extContinueMatchToU() argument
374 match=ucnv_extMatchToU(cnv->sharedData->mbcs.extIndexes, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extContinueMatchToU()
375 cnv->preToU, cnv->preToULength, in ucnv_extContinueMatchToU()
378 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchToU()
380 if(match>=cnv->preToULength) { in ucnv_extContinueMatchToU()
382 pArgs->source+=match-cnv->preToULength; in ucnv_extContinueMatchToU()
383 cnv->preToULength=0; in ucnv_extContinueMatchToU()
386 length=cnv->preToULength-match; in ucnv_extContinueMatchToU()
387 uprv_memmove(cnv->preToU, cnv->preToU+match, length); in ucnv_extContinueMatchToU()
388 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
392 ucnv_extWriteToU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchToU()
405 for(j=cnv->preToULength; j<match; ++j) { in ucnv_extContinueMatchToU()
406 cnv->preToU[j]=*s++; in ucnv_extContinueMatchToU()
409 cnv->preToULength=(int8_t)match; in ucnv_extContinueMatchToU()
430 uprv_memcpy(cnv->toUBytes, cnv->preToU, cnv->preToUFirstLength); in ucnv_extContinueMatchToU()
431 cnv->toULength=cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
434 length=cnv->preToULength-cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
436 uprv_memmove(cnv->preToU, cnv->preToU+cnv->preToUFirstLength, length); in ucnv_extContinueMatchToU()
440 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()
906 cnv->preFromU[j]=*s++; in ucnv_extContinueMatchFromU()
909 cnv->preFromULength=(int8_t)match; in ucnv_extContinueMatchFromU()
931 cnv->useSubChar1=TRUE; in ucnv_extContinueMatchFromU()
935 cnv->fromUChar32=cnv->preFromUFirstCP; in ucnv_extContinueMatchFromU()
936 cnv->preFromUFirstCP=U_SENTINEL; in ucnv_extContinueMatchFromU()
939 cnv->preFromULength=-cnv->preFromULength; in ucnv_extContinueMatchFromU()