2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2014-02-25 21:21:49 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2012-2014, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2014-02-25 21:21:49 +00:00
|
|
|
*******************************************************************************
|
|
|
|
* collationroot.h
|
|
|
|
*
|
|
|
|
* created on: 2012dec17
|
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COLLATIONROOT_H__
|
|
|
|
#define __COLLATIONROOT_H__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_COLLATION
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2014-08-20 21:46:02 +00:00
|
|
|
struct CollationCacheEntry;
|
2014-02-25 21:21:49 +00:00
|
|
|
struct CollationData;
|
|
|
|
struct CollationSettings;
|
|
|
|
struct CollationTailoring;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Collation root provider.
|
|
|
|
*/
|
|
|
|
class U_I18N_API CollationRoot { // purely static
|
|
|
|
public:
|
2014-08-20 21:46:02 +00:00
|
|
|
static const CollationCacheEntry *getRootCacheEntry(UErrorCode &errorCode);
|
2014-02-25 21:21:49 +00:00
|
|
|
static const CollationTailoring *getRoot(UErrorCode &errorCode);
|
|
|
|
static const CollationData *getData(UErrorCode &errorCode);
|
|
|
|
static const CollationSettings *getSettings(UErrorCode &errorCode);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void load(UErrorCode &errorCode);
|
|
|
|
};
|
|
|
|
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif // !UCONFIG_NO_COLLATION
|
|
|
|
#endif // __COLLATIONROOT_H__
|