view modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/numparse_scientific.h @ 11348:6744f504e684

8231310: Add .jcheck/conf to jfx git repo Reviewed-by: prr, jvos
author kcr
date Tue, 01 Oct 2019 05:28:24 -0700
line wrap: on
line source
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use:

#include "unicode/utypes.h"


#include "numparse_types.h"
#include "numparse_decimal.h"
#include "unicode/numberformatter.h"

using icu::number::impl::Grouper;

U_NAMESPACE_BEGIN namespace numparse {
namespace impl {

class ScientificMatcher : public NumberParseMatcher, public UMemory {
    ScientificMatcher() = default;  // WARNING: Leaves the object in an unusable state

    ScientificMatcher(const DecimalFormatSymbols& dfs, const Grouper& grouper);

    bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override;

    bool smokeTest(const StringSegment& segment) const override;

    UnicodeString toString() const override;

    UnicodeString fExponentSeparatorString;
    DecimalMatcher fExponentMatcher;
    UnicodeString fCustomMinusSign;
    UnicodeString fCustomPlusSign;

} // namespace impl
} // namespace numparse

#endif /* #if !UCONFIG_NO_FORMATTING */