]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/toolutil/swapimpl.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / swapimpl.h
... / ...
CommitLineData
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4*******************************************************************************
5*
6* Copyright (C) 2005, International Business Machines
7* Corporation and others. All Rights Reserved.
8*
9*******************************************************************************
10* file name: swapimpl.h
11* encoding: UTF-8
12* tab size: 8 (not used)
13* indentation:4
14*
15* created on: 2005jul29
16* created by: Markus W. Scherer
17*
18* Declarations for data file swapping functions not declared in internal
19* library headers.
20*/
21
22#ifndef __SWAPIMPL_H__
23#define __SWAPIMPL_H__
24
25#include "unicode/utypes.h"
26#include "udataswp.h"
27
28/**
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.
34 *
35 * @see UDataSwapFn
36 * @see udata_openSwapper
37 * @see udata_openSwapperForInputData
38 * @internal ICU 2.8
39 */
40U_CAPI int32_t U_EXPORT2
41udata_swap(const UDataSwapper *ds,
42 const void *inData, int32_t length, void *outData,
43 UErrorCode *pErrorCode);
44
45#endif