Lines Matching full:swapper
364 UDataSwapper *swapper;
374 /* allocate the swapper */
375 swapper=uprv_malloc(sizeof(UDataSwapper));
376 if(swapper==NULL) {
380 uprv_memset(swapper, 0, sizeof(UDataSwapper));
383 swapper->inIsBigEndian=inIsBigEndian;
384 swapper->inCharset=inCharset;
385 swapper->outIsBigEndian=outIsBigEndian;
386 swapper->outCharset=outCharset;
388 swapper->readUInt16= inIsBigEndian==U_IS_BIG_ENDIAN ? uprv_readDirectUInt16 : uprv_readSwapUInt16;
389 swapper->readUInt32= inIsBigEndian==U_IS_BIG_ENDIAN ? uprv_readDirectUInt32 : uprv_readSwapUInt32;
391 swapper->writeUInt16= outIsBigEndian==U_IS_BIG_ENDIAN ? uprv_writeDirectUInt16 : uprv_writeSwapUInt16;
392 swapper->writeUInt32= outIsBigEndian==U_IS_BIG_ENDIAN ? uprv_writeDirectUInt32 : uprv_writeSwapUInt32;
394 swapper->compareInvChars= outCharset==U_ASCII_FAMILY ? uprv_compareInvAscii : uprv_compareInvEbcdic;
397 swapper->swapArray16=uprv_copyArray16;
398 swapper->swapArray32=uprv_copyArray32;
399 swapper->swapArray64=uprv_copyArray64;
401 swapper->swapArray16=uprv_swapArray16;
402 swapper->swapArray32=uprv_swapArray32;
403 swapper->swapArray64=uprv_swapArray64;
407 swapper->swapInvChars= outCharset==U_ASCII_FAMILY ? uprv_copyAscii : uprv_ebcdicFromAscii;
409 swapper->swapInvChars= outCharset==U_EBCDIC_FAMILY ? uprv_copyEbcdic : uprv_asciiFromEbcdic;
412 return swapper;