blob: 5617c0c6a608229036ecab8da63c2a22e9cadcfc [file] [log] [blame]
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use:
#include "unicode/utypes.h"
#include "numparse_types.h"
#include "numparse_decimal.h"
#include "numparse_symbols.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;
IgnorablesMatcher fIgnorablesMatcher;
UnicodeString fCustomMinusSign;
UnicodeString fCustomPlusSign;
} // namespace impl
} // namespace numparse
#endif /* #if !UCONFIG_NO_FORMATTING */