mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 11:27:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
36
intl/icu/source/i18n/sharednumberformat.h
Normal file
36
intl/icu/source/i18n/sharednumberformat.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
// Copyright (C) 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.
|
||||
******************************************************************************
|
||||
* sharednumberformat.h
|
||||
*/
|
||||
|
||||
#ifndef __SHARED_NUMBERFORMAT_H__
|
||||
#define __SHARED_NUMBERFORMAT_H__
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "sharedobject.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class NumberFormat;
|
||||
|
||||
class U_I18N_API SharedNumberFormat : public SharedObject {
|
||||
public:
|
||||
SharedNumberFormat(NumberFormat *nfToAdopt) : ptr(nfToAdopt) { }
|
||||
virtual ~SharedNumberFormat();
|
||||
const NumberFormat *get() const { return ptr; }
|
||||
const NumberFormat *operator->() const { return ptr; }
|
||||
const NumberFormat &operator*() const { return *ptr; }
|
||||
private:
|
||||
NumberFormat *ptr;
|
||||
SharedNumberFormat(const SharedNumberFormat &);
|
||||
SharedNumberFormat &operator=(const SharedNumberFormat &);
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue