Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 1 | // © 2016 and later: Unicode, Inc. and others. |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 2 | // License & terms of use: http://www.unicode.org/copyright.html |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 3 | /* |
| 4 | ******************************************************************************* |
| 5 | * |
ccornelius | fceb398 | 2014-04-16 12:27:14 -0700 | [diff] [blame] | 6 | * Copyright (C) 2003-2014, International Business Machines |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 7 | * Corporation and others. All Rights Reserved. |
| 8 | * |
| 9 | ******************************************************************************* |
| 10 | * file name: ucol_swp.h |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 11 | * encoding: UTF-8 |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 12 | * tab size: 8 (not used) |
| 13 | * indentation:4 |
| 14 | * |
| 15 | * created on: 2003sep10 |
| 16 | * created by: Markus W. Scherer |
| 17 | * |
| 18 | * Swap collation binaries. |
| 19 | */ |
| 20 | |
| 21 | #ifndef __UCOL_SWP_H__ |
| 22 | #define __UCOL_SWP_H__ |
| 23 | |
| 24 | #include "unicode/utypes.h" |
| 25 | |
| 26 | #if !UCONFIG_NO_COLLATION |
| 27 | |
| 28 | #include "udataswp.h" |
| 29 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 30 | /* |
| 31 | * Does the data look like a collation binary? |
| 32 | * @internal |
| 33 | */ |
Victor Chang | 978167a | 2021-01-18 17:56:33 +0000 | [diff] [blame] | 34 | U_CAPI UBool U_EXPORT2 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 35 | ucol_looksLikeCollationBinary(const UDataSwapper *ds, |
| 36 | const void *inData, int32_t length); |
| 37 | |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 38 | /** |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 39 | * Swap ICU collation data like ucadata.icu. See udataswp.h. |
| 40 | * @internal |
| 41 | */ |
| 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); |
| 46 | |
| 47 | /** |
| 48 | * Swap inverse UCA collation data (invuca.icu). See udataswp.h. |
| 49 | * @internal |
| 50 | */ |
| 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); |
| 55 | |
| 56 | #endif /* #if !UCONFIG_NO_COLLATION */ |
| 57 | |
| 58 | #endif |