ICU 54.1 54.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
23 U_NAMESPACE_BEGIN
24
25 class DecimalFormatSymbols;
26 class FieldPositionIterator;
27 class DecimalFormatStaticSets;
28
51 class U_I18N_API ScientificFormatHelper : public UObject {
52 public:
60 ScientificFormatHelper(const DecimalFormatSymbols &symbols, UErrorCode& status);
61
66 ScientificFormatHelper(const ScientificFormatHelper &other);
67
72 ScientificFormatHelper &operator=(const ScientificFormatHelper &other);
73
78 virtual ~ScientificFormatHelper();
79
99 UnicodeString &insertMarkup(
100 const UnicodeString &s,
101 FieldPositionIterator &fpi,
102 const UnicodeString &beginMarkup,
103 const UnicodeString &endMarkup,
104 UnicodeString &result,
105 UErrorCode &status) const;
106
124 UnicodeString &toSuperscriptExponentDigits(
125 const UnicodeString &s,
126 FieldPositionIterator &fpi,
127 UnicodeString &result,
128 UErrorCode &status) const;
129 private:
130 UnicodeString fPreExponent;
131 const DecimalFormatStaticSets *fStaticSets;
132 };
133
134 U_NAMESPACE_END
135
136 #endif /* U_HIDE_DRAFT_API */
137
138 #endif /* !UCONFIG_NO_FORMATTING */
139 #endif