2 *******************************************************************************
4 * Copyright (C) 2003-2014, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: ucol_swp.h
10 * tab size: 8 (not used)
13 * created on: 2003sep10
14 * created by: Markus W. Scherer
16 * Swap collation binaries.
19 #ifndef __UCOL_SWP_H__
20 #define __UCOL_SWP_H__
22 #include "unicode/utypes.h"
24 #if !UCONFIG_NO_COLLATION
29 * Does the data look like a collation binary?
32 U_INTERNAL UBool U_EXPORT2
33 ucol_looksLikeCollationBinary(const UDataSwapper
*ds
,
34 const void *inData
, int32_t length
);
37 * Swap ICU collation data like ucadata.icu. See udataswp.h.
40 U_CAPI
int32_t U_EXPORT2
41 ucol_swap(const UDataSwapper
*ds
,
42 const void *inData
, int32_t length
, void *outData
,
43 UErrorCode
*pErrorCode
);
46 * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
49 U_CAPI
int32_t U_EXPORT2
50 ucol_swapInverseUCA(const UDataSwapper
*ds
,
51 const void *inData
, int32_t length
, void *outData
,
52 UErrorCode
*pErrorCode
);
54 #endif /* #if !UCONFIG_NO_COLLATION */