1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ******************************************************************************
5 * Copyright (C) 2014, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 ******************************************************************************
11 #ifndef __SHARED_PLURALRULES_H__
12 #define __SHARED_PLURALRULES_H__
14 #include "unicode/utypes.h"
15 #include "sharedobject.h"
21 class U_I18N_API SharedPluralRules
: public SharedObject
{
23 SharedPluralRules(PluralRules
*prToAdopt
) : ptr(prToAdopt
) { }
24 virtual ~SharedPluralRules();
25 const PluralRules
*operator->() const { return ptr
; }
26 const PluralRules
&operator*() const { return *ptr
; }
29 SharedPluralRules(const SharedPluralRules
&);
30 SharedPluralRules
&operator=(const SharedPluralRules
&);