comparison modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/numparse_scientific.h @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:09555e2b1846
1 // © 2018 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3
4 #include "unicode/utypes.h"
5
6 #if !UCONFIG_NO_FORMATTING
7 #ifndef __NUMPARSE_SCIENTIFIC_H__
8 #define __NUMPARSE_SCIENTIFIC_H__
9
10 #include "numparse_types.h"
11 #include "numparse_decimal.h"
12 #include "unicode/numberformatter.h"
13
14 using icu::number::impl::Grouper;
15
16 U_NAMESPACE_BEGIN namespace numparse {
17 namespace impl {
18
19
20 class ScientificMatcher : public NumberParseMatcher, public UMemory {
21 public:
22 ScientificMatcher() = default; // WARNING: Leaves the object in an unusable state
23
24 ScientificMatcher(const DecimalFormatSymbols& dfs, const Grouper& grouper);
25
26 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override;
27
28 bool smokeTest(const StringSegment& segment) const override;
29
30 UnicodeString toString() const override;
31
32 private:
33 UnicodeString fExponentSeparatorString;
34 DecimalMatcher fExponentMatcher;
35 UnicodeString fCustomMinusSign;
36 UnicodeString fCustomPlusSign;
37 };
38
39
40 } // namespace impl
41 } // namespace numparse
42 U_NAMESPACE_END
43
44 #endif //__NUMPARSE_SCIENTIFIC_H__
45 #endif /* #if !UCONFIG_NO_FORMATTING */