1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/ucol_swp.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +/* 1.5 +******************************************************************************* 1.6 +* 1.7 +* Copyright (C) 2003-2009, International Business Machines 1.8 +* Corporation and others. All Rights Reserved. 1.9 +* 1.10 +******************************************************************************* 1.11 +* file name: ucol_swp.h 1.12 +* encoding: US-ASCII 1.13 +* tab size: 8 (not used) 1.14 +* indentation:4 1.15 +* 1.16 +* created on: 2003sep10 1.17 +* created by: Markus W. Scherer 1.18 +* 1.19 +* Swap collation binaries. 1.20 +*/ 1.21 + 1.22 +#ifndef __UCOL_SWP_H__ 1.23 +#define __UCOL_SWP_H__ 1.24 + 1.25 +#include "unicode/utypes.h" 1.26 + 1.27 +#if !UCONFIG_NO_COLLATION 1.28 + 1.29 +#include "udataswp.h" 1.30 + 1.31 +/* 1.32 + * Does the data look like a collation binary? 1.33 + * @internal 1.34 + */ 1.35 +U_INTERNAL UBool U_EXPORT2 1.36 +ucol_looksLikeCollationBinary(const UDataSwapper *ds, 1.37 + const void *inData, int32_t length); 1.38 + 1.39 +/** 1.40 + * Swap a header-less collation binary, inside a resource bundle or ucadata.icu. 1.41 + * See udataswp.h. 1.42 + * @internal 1.43 + */ 1.44 +U_CAPI int32_t U_EXPORT2 1.45 +ucol_swapBinary(const UDataSwapper *ds, 1.46 + const void *inData, int32_t length, void *outData, 1.47 + UErrorCode *pErrorCode); 1.48 + 1.49 +/** 1.50 + * Swap ICU collation data like ucadata.icu. See udataswp.h. 1.51 + * @internal 1.52 + */ 1.53 +U_CAPI int32_t U_EXPORT2 1.54 +ucol_swap(const UDataSwapper *ds, 1.55 + const void *inData, int32_t length, void *outData, 1.56 + UErrorCode *pErrorCode); 1.57 + 1.58 +/** 1.59 + * Swap inverse UCA collation data (invuca.icu). See udataswp.h. 1.60 + * @internal 1.61 + */ 1.62 +U_CAPI int32_t U_EXPORT2 1.63 +ucol_swapInverseUCA(const UDataSwapper *ds, 1.64 + const void *inData, int32_t length, void *outData, 1.65 + UErrorCode *pErrorCode); 1.66 + 1.67 +#endif /* #if !UCONFIG_NO_COLLATION */ 1.68 + 1.69 +#endif