1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 2003-2014, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
10 * file name: ucol_swp.h
12 * tab size: 8 (not used)
15 * created on: 2003sep10
16 * created by: Markus W. Scherer
18 * Swap collation binaries.
21 #ifndef __UCOL_SWP_H__
22 #define __UCOL_SWP_H__
24 #include "unicode/utypes.h"
26 #if !UCONFIG_NO_COLLATION
31 * Does the data look like a collation binary?
34 U_INTERNAL UBool U_EXPORT2
35 ucol_looksLikeCollationBinary(const UDataSwapper
*ds
,
36 const void *inData
, int32_t length
);
39 * Swap ICU collation data like ucadata.icu. See udataswp.h.
42 U_CAPI
int32_t U_EXPORT2
43 ucol_swap(const UDataSwapper
*ds
,
44 const void *inData
, int32_t length
, void *outData
,
45 UErrorCode
*pErrorCode
);
48 * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
51 U_CAPI
int32_t U_EXPORT2
52 ucol_swapInverseUCA(const UDataSwapper
*ds
,
53 const void *inData
, int32_t length
, void *outData
,
54 UErrorCode
*pErrorCode
);
56 #endif /* #if !UCONFIG_NO_COLLATION */