]> git.saurik.com Git - apple/icu.git/blame - icuSources/common/ucol_swp.h
ICU-57163.0.1.tar.gz
[apple/icu.git] / icuSources / common / ucol_swp.h
CommitLineData
374ca955
A
1/*
2*******************************************************************************
3*
57a6839d 4* Copyright (C) 2003-2014, International Business Machines
374ca955
A
5* Corporation and others. All Rights Reserved.
6*
7*******************************************************************************
8* file name: ucol_swp.h
9* encoding: US-ASCII
10* tab size: 8 (not used)
11* indentation:4
12*
13* created on: 2003sep10
14* created by: Markus W. Scherer
15*
16* Swap collation binaries.
17*/
18
19#ifndef __UCOL_SWP_H__
20#define __UCOL_SWP_H__
21
22#include "unicode/utypes.h"
23
24#if !UCONFIG_NO_COLLATION
25
26#include "udataswp.h"
27
729e4ab9
A
28/*
29 * Does the data look like a collation binary?
30 * @internal
31 */
32U_INTERNAL UBool U_EXPORT2
33ucol_looksLikeCollationBinary(const UDataSwapper *ds,
34 const void *inData, int32_t length);
35
374ca955
A
36/**
37 * Swap ICU collation data like ucadata.icu. See udataswp.h.
38 * @internal
39 */
40U_CAPI int32_t U_EXPORT2
41ucol_swap(const UDataSwapper *ds,
42 const void *inData, int32_t length, void *outData,
43 UErrorCode *pErrorCode);
44
45/**
46 * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
47 * @internal
48 */
49U_CAPI int32_t U_EXPORT2
50ucol_swapInverseUCA(const UDataSwapper *ds,
51 const void *inData, int32_t length, void *outData,
52 UErrorCode *pErrorCode);
53
54#endif /* #if !UCONFIG_NO_COLLATION */
55
56#endif