michael@0: /* michael@0: ******************************************************************************* michael@0: * michael@0: * Copyright (C) 2005, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ******************************************************************************* michael@0: * file name: swapimpl.h michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 2005jul29 michael@0: * created by: Markus W. Scherer michael@0: * michael@0: * Declarations for data file swapping functions not declared in internal michael@0: * library headers. michael@0: */ michael@0: michael@0: #ifndef __SWAPIMPL_H__ michael@0: #define __SWAPIMPL_H__ michael@0: michael@0: #include "unicode/utypes.h" michael@0: #include "udataswp.h" michael@0: michael@0: /** michael@0: * Identifies and then transforms the ICU data piece in-place, or determines michael@0: * its length. See UDataSwapFn. michael@0: * This function handles single data pieces (but not .dat data packages) michael@0: * and internally dispatches to per-type swap functions. michael@0: * Sets a U_UNSUPPORTED_ERROR if the data format is not recognized. michael@0: * michael@0: * @see UDataSwapFn michael@0: * @see udata_openSwapper michael@0: * @see udata_openSwapperForInputData michael@0: * @internal ICU 2.8 michael@0: */ michael@0: U_CAPI int32_t U_EXPORT2 michael@0: udata_swap(const UDataSwapper *ds, michael@0: const void *inData, int32_t length, void *outData, michael@0: UErrorCode *pErrorCode); michael@0: michael@0: #endif