From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- intl/icu/source/i18n/sharedpluralrules.h | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 intl/icu/source/i18n/sharedpluralrules.h (limited to 'intl/icu/source/i18n/sharedpluralrules.h') diff --git a/intl/icu/source/i18n/sharedpluralrules.h b/intl/icu/source/i18n/sharedpluralrules.h new file mode 100644 index 0000000000..28d8b25c14 --- /dev/null +++ b/intl/icu/source/i18n/sharedpluralrules.h @@ -0,0 +1,35 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* Copyright (C) 2014, International Business Machines +* Corporation and others. All Rights Reserved. +****************************************************************************** +* sharedpluralrules.h +*/ + +#ifndef __SHARED_PLURALRULES_H__ +#define __SHARED_PLURALRULES_H__ + +#include "unicode/utypes.h" +#include "sharedobject.h" + +U_NAMESPACE_BEGIN + +class PluralRules; + +class U_I18N_API SharedPluralRules : public SharedObject { +public: + SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { } + virtual ~SharedPluralRules(); + const PluralRules *operator->() const { return ptr; } + const PluralRules &operator*() const { return *ptr; } +private: + PluralRules *ptr; + SharedPluralRules(const SharedPluralRules &); + SharedPluralRules &operator=(const SharedPluralRules &); +}; + +U_NAMESPACE_END + +#endif -- cgit v1.2.3