| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2013-2014, International Business Machines | 3 * Copyright (C) 2013-2015, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 * collationinfo.h | 6 * collationinfo.h |
| 7 * | 7 * |
| 8 * created on: 2013aug05 | 8 * created on: 2013aug05 |
| 9 * created by: Markus W. Scherer | 9 * created by: Markus W. Scherer |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 #ifndef __COLLATIONINFO_H__ | 12 #ifndef __COLLATIONINFO_H__ |
| 13 #define __COLLATIONINFO_H__ | 13 #define __COLLATIONINFO_H__ |
| 14 | 14 |
| 15 #include "unicode/utypes.h" | 15 #include "unicode/utypes.h" |
| 16 | 16 |
| 17 #if !UCONFIG_NO_COLLATION | 17 #if !UCONFIG_NO_COLLATION |
| 18 | 18 |
| 19 U_NAMESPACE_BEGIN | 19 U_NAMESPACE_BEGIN |
| 20 | 20 |
| 21 struct CollationData; |
| 22 |
| 21 /** | 23 /** |
| 22 * Collation-related code for tools & demos. | 24 * Collation-related code for tools & demos. |
| 23 */ | 25 */ |
| 24 class U_TOOLUTIL_API CollationInfo /* all static */ { | 26 class U_TOOLUTIL_API CollationInfo /* all static */ { |
| 25 public: | 27 public: |
| 26 static void printSizes(int32_t sizeWithHeader, const int32_t indexes[]); | 28 static void printSizes(int32_t sizeWithHeader, const int32_t indexes[]); |
| 29 static void printReorderRanges(const CollationData &data, const int32_t *cod
es, int32_t length); |
| 27 | 30 |
| 28 private: | 31 private: |
| 29 CollationInfo(); // no constructor | 32 CollationInfo(); // no constructor |
| 30 | 33 |
| 31 static int32_t getDataLength(const int32_t indexes[], int32_t startIndex); | 34 static int32_t getDataLength(const int32_t indexes[], int32_t startIndex); |
| 32 }; | 35 }; |
| 33 | 36 |
| 34 U_NAMESPACE_END | 37 U_NAMESPACE_END |
| 35 | 38 |
| 36 #endif // !UCONFIG_NO_COLLATION | 39 #endif // !UCONFIG_NO_COLLATION |
| 37 #endif // __COLLATIONINFO_H__ | 40 #endif // __COLLATIONINFO_H__ |
| OLD | NEW |