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
21U_NAMESPACE_BEGIN
22
23struct CollationData;
24
25/**
26 * Collation-related code for tools & demos.
27 */
28class U_TOOLUTIL_API CollationInfo /* all static */ {
29public:
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
33private:
34    CollationInfo();  // no constructor
35
36    static int32_t getDataLength(const int32_t indexes[], int32_t startIndex);
37};
38
39U_NAMESPACE_END
40
41#endif  // !UCONFIG_NO_COLLATION
42#endif  // __COLLATIONINFO_H__
43