9#ifndef SCINUMBERFORMATTER_H
10#define SCINUMBERFORMATTER_H
14#if U_SHOW_CPLUSPLUS_API
16#if !UCONFIG_NO_FORMATTING
28class FieldPositionIterator;
29class DecimalFormatSymbols;
148 virtual Style *clone()
const = 0;
160 class U_I18N_API SuperscriptStyle :
public Style {
162 virtual SuperscriptStyle *clone()
const override;
175 const UnicodeString &beginMarkup,
176 const UnicodeString &endMarkup)
178 fBeginMarkup(beginMarkup),
179 fEndMarkup(endMarkup) { }
180 virtual MarkupStyle *clone()
const override;
182 virtual UnicodeString &format(
183 const UnicodeString &original,
184 FieldPositionIterator &fpi,
185 const UnicodeString &preExponent,
186 UnicodeString &appendTo,
189 UnicodeString fBeginMarkup;
190 UnicodeString fEndMarkup;
193 ScientificNumberFormatter(
194 DecimalFormat *fmtToAdopt,
198 ScientificNumberFormatter(
const ScientificNumberFormatter &other);
199 ScientificNumberFormatter &operator=(
const ScientificNumberFormatter &) =
delete;
201 static void getPreExponent(
202 const DecimalFormatSymbols &dfs, UnicodeString &preExponent);
204 static ScientificNumberFormatter *createInstance(
205 DecimalFormat *fmtToAdopt,
209 UnicodeString fPreExponent;
210 DecimalFormat *fDecimalFormat;
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A Locale object represents a specific geographical, political, or cultural region.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.