swapimpl.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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) 2005, International Business Machines
  7. * Corporation and others. All Rights Reserved.
  8. *
  9. *******************************************************************************
  10. * file name: swapimpl.h
  11. * encoding: UTF-8
  12. * tab size: 8 (not used)
  13. * indentation:4
  14. *
  15. * created on: 2005jul29
  16. * created by: Markus W. Scherer
  17. *
  18. * Declarations for data file swapping functions not declared in internal
  19. * library headers.
  20. */
  21. #ifndef __SWAPIMPL_H__
  22. #define __SWAPIMPL_H__
  23. #include "unicode/utypes.h"
  24. #include "udataswp.h"
  25. /**
  26. * Identifies and then transforms the ICU data piece in-place, or determines
  27. * its length. See UDataSwapFn.
  28. * This function handles single data pieces (but not .dat data packages)
  29. * and internally dispatches to per-type swap functions.
  30. * Sets a U_UNSUPPORTED_ERROR if the data format is not recognized.
  31. *
  32. * @see UDataSwapFn
  33. * @see udata_openSwapper
  34. * @see udata_openSwapperForInputData
  35. * @internal ICU 2.8
  36. */
  37. U_CAPI int32_t U_EXPORT2
  38. udata_swap(const UDataSwapper *ds,
  39. const void *inData, int32_t length, void *outData,
  40. UErrorCode *pErrorCode);
  41. #endif