• Home
  • Raw
  • Download

Lines Matching refs:cnv

237 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx,  in ucnv_extWriteToU()  argument
246 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU()
253 cnv, in ucnv_extWriteToU()
271 #define UCNV_SISO_STATE(cnv) \ argument
272 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \
273 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1)
279 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument
290 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU()
291 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU()
294 cnv->useFallback, flush); in ucnv_extInitialMatchToU()
300 ucnv_extWriteToU(cnv, cx, in ucnv_extInitialMatchToU()
312 s=(const char *)cnv->toUBytes; in ucnv_extInitialMatchToU()
313 cnv->preToUFirstLength=(int8_t)firstLength; in ucnv_extInitialMatchToU()
315 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
322 cnv->preToU[j]=*s++; in ucnv_extInitialMatchToU()
325 cnv->preToULength=(int8_t)match; in ucnv_extInitialMatchToU()
371 ucnv_extContinueMatchToU(UConverter *cnv, in ucnv_extContinueMatchToU() argument
377 match=ucnv_extMatchToU(cnv->sharedData->mbcs.extIndexes, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extContinueMatchToU()
378 cnv->preToU, cnv->preToULength, in ucnv_extContinueMatchToU()
381 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchToU()
383 if(match>=cnv->preToULength) { in ucnv_extContinueMatchToU()
385 pArgs->source+=match-cnv->preToULength; in ucnv_extContinueMatchToU()
386 cnv->preToULength=0; in ucnv_extContinueMatchToU()
389 length=cnv->preToULength-match; in ucnv_extContinueMatchToU()
390 uprv_memmove(cnv->preToU, cnv->preToU+match, length); in ucnv_extContinueMatchToU()
391 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
395 ucnv_extWriteToU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchToU()
408 for(j=cnv->preToULength; j<match; ++j) { in ucnv_extContinueMatchToU()
409 cnv->preToU[j]=*s++; in ucnv_extContinueMatchToU()
412 cnv->preToULength=(int8_t)match; in ucnv_extContinueMatchToU()
433 uprv_memcpy(cnv->toUBytes, cnv->preToU, cnv->preToUFirstLength); in ucnv_extContinueMatchToU()
434 cnv->toULength=cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
437 length=cnv->preToULength-cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
439 uprv_memmove(cnv->preToU, cnv->preToU+cnv->preToUFirstLength, length); in ucnv_extContinueMatchToU()
443 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
672 ucnv_extWriteFromU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteFromU() argument
713 if((prevLength=cnv->fromUnicodeStatus)!=0) { in ucnv_extWriteFromU()
720 cnv->fromUnicodeStatus=1; in ucnv_extWriteFromU()
724 cnv->fromUnicodeStatus=2; in ucnv_extWriteFromU()
740 ucnv_fromUWriteBytes(cnv, (const char *)result, length, in ucnv_extWriteFromU()
750 ucnv_extInitialMatchFromU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchFromU() argument
765 cnv->useFallback, flush); in ucnv_extInitialMatchFromU()
770 cnv->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY) in ucnv_extInitialMatchFromU()
776 ucnv_extWriteFromU(cnv, cx, in ucnv_extInitialMatchFromU()
788 cnv->preFromUFirstCP=cp; in ucnv_extInitialMatchFromU()
794 cnv->preFromU[j]=*s++; in ucnv_extInitialMatchFromU()
797 cnv->preFromULength=(int8_t)match; in ucnv_extInitialMatchFromU()
801 cnv->useSubChar1=TRUE; in ucnv_extInitialMatchFromU()
867 ucnv_extContinueMatchFromU(UConverter *cnv, in ucnv_extContinueMatchFromU() argument
873 match=ucnv_extMatchFromU(cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
874 cnv->preFromUFirstCP, in ucnv_extContinueMatchFromU()
875 cnv->preFromU, cnv->preFromULength, in ucnv_extContinueMatchFromU()
878 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchFromU()
882 if(match>=cnv->preFromULength) { in ucnv_extContinueMatchFromU()
884 pArgs->source+=match-cnv->preFromULength; in ucnv_extContinueMatchFromU()
885 cnv->preFromULength=0; in ucnv_extContinueMatchFromU()
888 int32_t length=cnv->preFromULength-match; in ucnv_extContinueMatchFromU()
889 u_memmove(cnv->preFromU, cnv->preFromU+match, length); in ucnv_extContinueMatchFromU()
890 cnv->preFromULength=(int8_t)-length; in ucnv_extContinueMatchFromU()
894 cnv->preFromUFirstCP=U_SENTINEL; in ucnv_extContinueMatchFromU()
897 ucnv_extWriteFromU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
910 for(j=cnv->preFromULength; j<match; ++j) { in ucnv_extContinueMatchFromU()
912 cnv->preFromU[j]=*s++; in ucnv_extContinueMatchFromU()
915 cnv->preFromULength=(int8_t)match; in ucnv_extContinueMatchFromU()
937 cnv->useSubChar1=TRUE; in ucnv_extContinueMatchFromU()
941 cnv->fromUChar32=cnv->preFromUFirstCP; in ucnv_extContinueMatchFromU()
942 cnv->preFromUFirstCP=U_SENTINEL; in ucnv_extContinueMatchFromU()
945 cnv->preFromULength=-cnv->preFromULength; in ucnv_extContinueMatchFromU()