ICU 62.1 62.1
compactdecimalformat.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4********************************************************************************
5* Copyright (C) 2012-2016, International Business Machines
6* Corporation and others. All Rights Reserved.
7********************************************************************************
8*
9* File COMPACTDECIMALFORMAT.H
10********************************************************************************
11*/
12
13#ifndef __COMPACT_DECIMAL_FORMAT_H__
14#define __COMPACT_DECIMAL_FORMAT_H__
15
16#include "unicode/utypes.h"
22#if !UCONFIG_NO_FORMATTING
23
24#include "unicode/decimfmt.h"
25
26struct UHashtable;
27
29
30class PluralRules;
31
184
186
187#endif /* #if !UCONFIG_NO_FORMATTING */
188
189#endif // __COMPACT_DECIMAL_FORMAT_H__
190//eof
UClassID getDynamicClassID() const
Returns a unique class ID POLYMORPHICALLY.
static CompactDecimalFormat * createInstance(const Locale &inLocale, UNumberCompactStyle style, UErrorCode &status)
Returns a compact decimal instance for specified locale.
CompactDecimalFormat(const CompactDecimalFormat &source)
Copy constructor.
~CompactDecimalFormat()
Destructor.
CurrencyAmount * parseCurrency(const UnicodeString &text, ParsePosition &pos) const
Parses text from the given string as a currency amount.
static UClassID getStaticClassID()
Return the class ID for this class.
A currency together with a numeric amount, such as 200 USD.
Definition curramt.h:37
Base class for all formats.
Definition format.h:96
Formattable objects can be passed to the Format class or its subclasses for formatting.
Definition fmtable.h:62
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A Locale object represents a specific geographical, political, or cultural region.
Definition locid.h:188
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Definition parsepos.h:49
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:287
C++ API: Compatibility APIs for decimal formatting.
UNumberCompactStyle
Constants for specifying short or long format.
Definition unum.h:319
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition uobject.h:93
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition utypes.h:396
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:360
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:138
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:137