2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2003-09-12 02:46:15 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2003-2014, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2003-09-12 02:46:15 +00:00
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: ucol_swp.h
|
2017-02-03 18:57:23 +00:00
|
|
|
* encoding: UTF-8
|
2003-09-12 02:46:15 +00:00
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2003sep10
|
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*
|
|
|
|
* Swap collation binaries.
|
|
|
|
*/
|
|
|
|
|
2003-09-16 00:49:06 +00:00
|
|
|
#ifndef __UCOL_SWP_H__
|
|
|
|
#define __UCOL_SWP_H__
|
|
|
|
|
2003-09-12 02:46:15 +00:00
|
|
|
#include "unicode/utypes.h"
|
2003-09-16 00:49:06 +00:00
|
|
|
|
|
|
|
#if !UCONFIG_NO_COLLATION
|
|
|
|
|
2003-09-12 02:46:15 +00:00
|
|
|
#include "udataswp.h"
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
/*
|
|
|
|
* Does the data look like a collation binary?
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
U_INTERNAL UBool U_EXPORT2
|
|
|
|
ucol_looksLikeCollationBinary(const UDataSwapper *ds,
|
|
|
|
const void *inData, int32_t length);
|
|
|
|
|
2003-09-12 18:49:09 +00:00
|
|
|
/**
|
|
|
|
* Swap ICU collation data like ucadata.icu. See udataswp.h.
|
|
|
|
* @internal
|
|
|
|
*/
|
2003-09-12 02:46:15 +00:00
|
|
|
U_CAPI int32_t U_EXPORT2
|
|
|
|
ucol_swap(const UDataSwapper *ds,
|
|
|
|
const void *inData, int32_t length, void *outData,
|
|
|
|
UErrorCode *pErrorCode);
|
2003-09-12 18:49:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Swap inverse UCA collation data (invuca.icu). See udataswp.h.
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
U_CAPI int32_t U_EXPORT2
|
|
|
|
ucol_swapInverseUCA(const UDataSwapper *ds,
|
|
|
|
const void *inData, int32_t length, void *outData,
|
|
|
|
UErrorCode *pErrorCode);
|
2003-09-16 00:49:06 +00:00
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_COLLATION */
|
|
|
|
|
|
|
|
#endif
|