]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/toolutil/swapimpl.h
8c6474f6626f89f6e114a96c619f549f9bfc12f5
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 2005, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
10 * file name: swapimpl.h
12 * tab size: 8 (not used)
15 * created on: 2005jul29
16 * created by: Markus W. Scherer
18 * Declarations for data file swapping functions not declared in internal
22 #ifndef __SWAPIMPL_H__
23 #define __SWAPIMPL_H__
25 #include "unicode/utypes.h"
29 * Identifies and then transforms the ICU data piece in-place, or determines
30 * its length. See UDataSwapFn.
31 * This function handles single data pieces (but not .dat data packages)
32 * and internally dispatches to per-type swap functions.
33 * Sets a U_UNSUPPORTED_ERROR if the data format is not recognized.
36 * @see udata_openSwapper
37 * @see udata_openSwapperForInputData
40 U_CAPI
int32_t U_EXPORT2
41 udata_swap(const UDataSwapper
*ds
,
42 const void *inData
, int32_t length
, void *outData
,
43 UErrorCode
*pErrorCode
);