intl/icu/source/common/ucol_swp.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /*
michael@0 2 *******************************************************************************
michael@0 3 *
michael@0 4 * Copyright (C) 2003-2009, International Business Machines
michael@0 5 * Corporation and others. All Rights Reserved.
michael@0 6 *
michael@0 7 *******************************************************************************
michael@0 8 * file name: ucol_swp.h
michael@0 9 * encoding: US-ASCII
michael@0 10 * tab size: 8 (not used)
michael@0 11 * indentation:4
michael@0 12 *
michael@0 13 * created on: 2003sep10
michael@0 14 * created by: Markus W. Scherer
michael@0 15 *
michael@0 16 * Swap collation binaries.
michael@0 17 */
michael@0 18
michael@0 19 #ifndef __UCOL_SWP_H__
michael@0 20 #define __UCOL_SWP_H__
michael@0 21
michael@0 22 #include "unicode/utypes.h"
michael@0 23
michael@0 24 #if !UCONFIG_NO_COLLATION
michael@0 25
michael@0 26 #include "udataswp.h"
michael@0 27
michael@0 28 /*
michael@0 29 * Does the data look like a collation binary?
michael@0 30 * @internal
michael@0 31 */
michael@0 32 U_INTERNAL UBool U_EXPORT2
michael@0 33 ucol_looksLikeCollationBinary(const UDataSwapper *ds,
michael@0 34 const void *inData, int32_t length);
michael@0 35
michael@0 36 /**
michael@0 37 * Swap a header-less collation binary, inside a resource bundle or ucadata.icu.
michael@0 38 * See udataswp.h.
michael@0 39 * @internal
michael@0 40 */
michael@0 41 U_CAPI int32_t U_EXPORT2
michael@0 42 ucol_swapBinary(const UDataSwapper *ds,
michael@0 43 const void *inData, int32_t length, void *outData,
michael@0 44 UErrorCode *pErrorCode);
michael@0 45
michael@0 46 /**
michael@0 47 * Swap ICU collation data like ucadata.icu. See udataswp.h.
michael@0 48 * @internal
michael@0 49 */
michael@0 50 U_CAPI int32_t U_EXPORT2
michael@0 51 ucol_swap(const UDataSwapper *ds,
michael@0 52 const void *inData, int32_t length, void *outData,
michael@0 53 UErrorCode *pErrorCode);
michael@0 54
michael@0 55 /**
michael@0 56 * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
michael@0 57 * @internal
michael@0 58 */
michael@0 59 U_CAPI int32_t U_EXPORT2
michael@0 60 ucol_swapInverseUCA(const UDataSwapper *ds,
michael@0 61 const void *inData, int32_t length, void *outData,
michael@0 62 UErrorCode *pErrorCode);
michael@0 63
michael@0 64 #endif /* #if !UCONFIG_NO_COLLATION */
michael@0 65
michael@0 66 #endif

mercurial