2 *******************************************************************************
4 * Copyright (C) 2003-2009, 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 a header-less collation binary, inside a resource bundle or ucadata.icu.
41 U_CAPI
int32_t U_EXPORT2
42 ucol_swapBinary(const UDataSwapper
*ds
,
43 const void *inData
, int32_t length
, void *outData
,
44 UErrorCode
*pErrorCode
);
47 * Swap ICU collation data like ucadata.icu. See udataswp.h.
50 U_CAPI
int32_t U_EXPORT2
51 ucol_swap(const UDataSwapper
*ds
,
52 const void *inData
, int32_t length
, void *outData
,
53 UErrorCode
*pErrorCode
);
56 * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
59 U_CAPI
int32_t U_EXPORT2
60 ucol_swapInverseUCA(const UDataSwapper
*ds
,
61 const void *inData
, int32_t length
, void *outData
,
62 UErrorCode
*pErrorCode
);
64 #endif /* #if !UCONFIG_NO_COLLATION */