annotate 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
rev   line source
arajkumar@11038 1 // © 2018 and later: Unicode, Inc. and others.
arajkumar@11038 2 // License & terms of use: http://www.unicode.org/copyright.html
arajkumar@11038 3
arajkumar@11038 4 #include "unicode/utypes.h"
arajkumar@11038 5
arajkumar@11038 6 #if !UCONFIG_NO_FORMATTING
arajkumar@11038 7 #ifndef __NUMPARSE_SCIENTIFIC_H__
arajkumar@11038 8 #define __NUMPARSE_SCIENTIFIC_H__
arajkumar@11038 9
arajkumar@11038 10 #include "numparse_types.h"
arajkumar@11038 11 #include "numparse_decimal.h"
arajkumar@11038 12 #include "unicode/numberformatter.h"
arajkumar@11038 13
arajkumar@11038 14 using icu::number::impl::Grouper;
arajkumar@11038 15
arajkumar@11038 16 U_NAMESPACE_BEGIN namespace numparse {
arajkumar@11038 17 namespace impl {
arajkumar@11038 18
arajkumar@11038 19
arajkumar@11038 20 class ScientificMatcher : public NumberParseMatcher, public UMemory {
arajkumar@11038 21 public:
arajkumar@11038 22 ScientificMatcher() = default; // WARNING: Leaves the object in an unusable state
arajkumar@11038 23
arajkumar@11038 24 ScientificMatcher(const DecimalFormatSymbols& dfs, const Grouper& grouper);
arajkumar@11038 25
arajkumar@11038 26 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override;
arajkumar@11038 27
arajkumar@11038 28 bool smokeTest(const StringSegment& segment) const override;
arajkumar@11038 29
arajkumar@11038 30 UnicodeString toString() const override;
arajkumar@11038 31
arajkumar@11038 32 private:
arajkumar@11038 33 UnicodeString fExponentSeparatorString;
arajkumar@11038 34 DecimalMatcher fExponentMatcher;
arajkumar@11038 35 UnicodeString fCustomMinusSign;
arajkumar@11038 36 UnicodeString fCustomPlusSign;
arajkumar@11038 37 };
arajkumar@11038 38
arajkumar@11038 39
arajkumar@11038 40 } // namespace impl
arajkumar@11038 41 } // namespace numparse
arajkumar@11038 42 U_NAMESPACE_END
arajkumar@11038 43
arajkumar@11038 44 #endif //__NUMPARSE_SCIENTIFIC_H__
arajkumar@11038 45 #endif /* #if !UCONFIG_NO_FORMATTING */