ucol_swp.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. *******************************************************************************
  5. *
  6. * Copyright (C) 2003-2014, International Business Machines
  7. * Corporation and others. All Rights Reserved.
  8. *
  9. *******************************************************************************
  10. * file name: ucol_swp.h
  11. * encoding: UTF-8
  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. #ifndef __UCOL_SWP_H__
  21. #define __UCOL_SWP_H__
  22. #include "unicode/utypes.h"
  23. #if !UCONFIG_NO_COLLATION
  24. #include "udataswp.h"
  25. /*
  26. * Does the data look like a collation binary?
  27. * @internal
  28. */
  29. U_CAPI UBool U_EXPORT2
  30. ucol_looksLikeCollationBinary(const UDataSwapper *ds,
  31. const void *inData, int32_t length);
  32. /**
  33. * Swap ICU collation data like ucadata.icu. See udataswp.h.
  34. * @internal
  35. */
  36. U_CAPI int32_t U_EXPORT2
  37. ucol_swap(const UDataSwapper *ds,
  38. const void *inData, int32_t length, void *outData,
  39. UErrorCode *pErrorCode);
  40. /**
  41. * Swap inverse UCA collation data (invuca.icu). See udataswp.h.
  42. * @internal
  43. */
  44. U_CAPI int32_t U_EXPORT2
  45. ucol_swapInverseUCA(const UDataSwapper *ds,
  46. const void *inData, int32_t length, void *outData,
  47. UErrorCode *pErrorCode);
  48. #endif /* #if !UCONFIG_NO_COLLATION */
  49. #endif