michael@0: /* michael@0: ******************************************************************************* michael@0: * michael@0: * Copyright (C) 2003-2009, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ******************************************************************************* michael@0: * file name: ucol_swp.h michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 2003sep10 michael@0: * created by: Markus W. Scherer michael@0: * michael@0: * Swap collation binaries. michael@0: */ michael@0: michael@0: #ifndef __UCOL_SWP_H__ michael@0: #define __UCOL_SWP_H__ michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: #if !UCONFIG_NO_COLLATION michael@0: michael@0: #include "udataswp.h" michael@0: michael@0: /* michael@0: * Does the data look like a collation binary? michael@0: * @internal michael@0: */ michael@0: U_INTERNAL UBool U_EXPORT2 michael@0: ucol_looksLikeCollationBinary(const UDataSwapper *ds, michael@0: const void *inData, int32_t length); michael@0: michael@0: /** michael@0: * Swap a header-less collation binary, inside a resource bundle or ucadata.icu. michael@0: * See udataswp.h. michael@0: * @internal michael@0: */ michael@0: U_CAPI int32_t U_EXPORT2 michael@0: ucol_swapBinary(const UDataSwapper *ds, michael@0: const void *inData, int32_t length, void *outData, michael@0: UErrorCode *pErrorCode); michael@0: michael@0: /** michael@0: * Swap ICU collation data like ucadata.icu. See udataswp.h. michael@0: * @internal michael@0: */ michael@0: U_CAPI int32_t U_EXPORT2 michael@0: ucol_swap(const UDataSwapper *ds, michael@0: const void *inData, int32_t length, void *outData, michael@0: UErrorCode *pErrorCode); michael@0: michael@0: /** michael@0: * Swap inverse UCA collation data (invuca.icu). See udataswp.h. michael@0: * @internal michael@0: */ michael@0: U_CAPI int32_t U_EXPORT2 michael@0: ucol_swapInverseUCA(const UDataSwapper *ds, michael@0: const void *inData, int32_t length, void *outData, michael@0: UErrorCode *pErrorCode); michael@0: michael@0: #endif /* #if !UCONFIG_NO_COLLATION */ michael@0: michael@0: #endif