ICU 54.1  54.1
scientificformathelper.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (c) 2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 */
7 #ifndef SCIFORMATHELPER_H
8 #define SCIFORMATHELPER_H
9 
10 #include "unicode/utypes.h"
11 
12 #if !UCONFIG_NO_FORMATTING
13 
14 #ifndef U_HIDE_DRAFT_API
15 
16 #include "unicode/unistr.h"
17 
24 
25 class DecimalFormatSymbols;
26 class FieldPositionIterator;
27 class DecimalFormatStaticSets;
28 
52  public:
61 
67 
72  ScientificFormatHelper &operator=(const ScientificFormatHelper &other);
73 
78  virtual ~ScientificFormatHelper();
79 
99  UnicodeString &insertMarkup(
100  const UnicodeString &s,
102  const UnicodeString &beginMarkup,
103  const UnicodeString &endMarkup,
104  UnicodeString &result,
105  UErrorCode &status) const;
106 
124  UnicodeString &toSuperscriptExponentDigits(
125  const UnicodeString &s,
127  UnicodeString &result,
128  UErrorCode &status) const;
129  private:
130  UnicodeString fPreExponent;
131  const DecimalFormatStaticSets *fStaticSets;
132 };
133 
135 
136 #endif /* U_HIDE_DRAFT_API */
137 
138 #endif /* !UCONFIG_NO_FORMATTING */
139 #endif
This class represents the set of symbols needed by DecimalFormat to format numbers.
Definition: dcfmtsym.h:84
C++ API: Unicode String.
A helper class for formatting numbers in standard scientific notation instead of E notation...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Definition: utypes.h:358
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
Definition: fpositer.h:53
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition: unistr.h:245
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:221