ICU 4.8.1.1
4.8.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
currunit.h
Go to the documentation of this file.
1
/*
2
**********************************************************************
3
* Copyright (c) 2004-2006, International Business Machines
4
* Corporation and others. All Rights Reserved.
5
**********************************************************************
6
* Author: Alan Liu
7
* Created: April 26, 2004
8
* Since: ICU 3.0
9
**********************************************************************
10
*/
11
#ifndef __CURRENCYUNIT_H__
12
#define __CURRENCYUNIT_H__
13
14
#include "
unicode/utypes.h
"
15
16
#if !UCONFIG_NO_FORMATTING
17
18
#include "
unicode/measunit.h
"
19
25
U_NAMESPACE_BEGIN
26
35
class
U_I18N_API
CurrencyUnit
:
public
MeasureUnit
{
36
public
:
45
CurrencyUnit
(
const
UChar
* isoCode,
UErrorCode
&ec);
46
51
CurrencyUnit
(
const
CurrencyUnit
& other);
52
57
CurrencyUnit
& operator=(
const
CurrencyUnit
& other);
58
64
virtual
UObject
*
clone
()
const
;
65
70
virtual
~
CurrencyUnit
();
71
77
UBool
operator==
(
const
UObject
& other)
const
;
78
87
virtual
UClassID
getDynamicClassID
()
const
;
88
95
static
UClassID
U_EXPORT2
getStaticClassID();
96
101
inline
const
UChar
* getISOCurrency()
const
;
102
103
private
:
107
UChar
isoCode[4];
108
};
109
110
inline
const
UChar
*
CurrencyUnit::getISOCurrency
()
const
{
111
return
isoCode;
112
}
113
114
U_NAMESPACE_END
115
116
#endif // !UCONFIG_NO_FORMATTING
117
#endif // __CURRENCYUNIT_H__
Generated on Thu Jul 7 2016 16:51:10 for ICU 4.8.1.1 by
1.8.1.2