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