ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / collationinfo.h
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
14 #ifndef __COLLATIONINFO_H__
15 #define __COLLATIONINFO_H__
16
17 #include "unicode/utypes.h"
18
19 #if !UCONFIG_NO_COLLATION
20
21 U_NAMESPACE_BEGIN
22
23 struct CollationData;
24
25 /**
26 * Collation-related code for tools & demos.
27 */
28 class U_TOOLUTIL_API CollationInfo /* all static */ {
29 public:
30 static void printSizes(int32_t sizeWithHeader, const int32_t indexes[]);
31 static void printReorderRanges(const CollationData &data, const int32_t *codes, int32_t length);
32
33 private:
34 CollationInfo(); // no constructor
35
36 static int32_t getDataLength(const int32_t indexes[], int32_t startIndex);
37 };
38
39 U_NAMESPACE_END
40
41 #endif // !UCONFIG_NO_COLLATION
42 #endif // __COLLATIONINFO_H__