collationinfo.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. *******************************************************************************
  5. * Copyright (C) 2013-2015, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. *******************************************************************************
  8. * collationinfo.h
  9. *
  10. * created on: 2013aug05
  11. * created by: Markus W. Scherer
  12. */
  13. #ifndef __COLLATIONINFO_H__
  14. #define __COLLATIONINFO_H__
  15. #include "unicode/utypes.h"
  16. #if !UCONFIG_NO_COLLATION
  17. U_NAMESPACE_BEGIN
  18. struct CollationData;
  19. /**
  20. * Collation-related code for tools & demos.
  21. */
  22. class U_TOOLUTIL_API CollationInfo /* all static */ {
  23. public:
  24. static void printSizes(int32_t sizeWithHeader, const int32_t indexes[]);
  25. static void printReorderRanges(const CollationData &data, const int32_t *codes, int32_t length);
  26. private:
  27. CollationInfo(); // no constructor
  28. static int32_t getDataLength(const int32_t indexes[], int32_t startIndex);
  29. };
  30. U_NAMESPACE_END
  31. #endif // !UCONFIG_NO_COLLATION
  32. #endif // __COLLATIONINFO_H__