diff options
author | mcheshkov <mcheshkov@yandex-team.ru> | 2022-02-10 16:46:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:15 +0300 |
commit | e9d19cec64684c9c1e6b0c98297e5b895cf904fe (patch) | |
tree | 2768b1223e96a8a0610a93d18425d9647c1123c8 /contrib/libs/icu/i18n/number_scientific.h | |
parent | 60040c91ffe701a84689b2c6310ff845e65cff42 (diff) | |
download | ydb-e9d19cec64684c9c1e6b0c98297e5b895cf904fe.tar.gz |
Restoring authorship annotation for <mcheshkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/icu/i18n/number_scientific.h')
-rw-r--r-- | contrib/libs/icu/i18n/number_scientific.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/contrib/libs/icu/i18n/number_scientific.h b/contrib/libs/icu/i18n/number_scientific.h index a55d5ed1d4..0d99deea4c 100644 --- a/contrib/libs/icu/i18n/number_scientific.h +++ b/contrib/libs/icu/i18n/number_scientific.h @@ -1,68 +1,68 @@ -// © 2017 and later: Unicode, Inc. and others. -// License & terms of use: http://www.unicode.org/copyright.html - -#include "unicode/utypes.h" - -#if !UCONFIG_NO_FORMATTING -#ifndef __NUMBER_SCIENTIFIC_H__ -#define __NUMBER_SCIENTIFIC_H__ - -#include "number_types.h" - -U_NAMESPACE_BEGIN namespace number { -namespace impl { - -// Forward-declare -class ScientificHandler; - -class U_I18N_API ScientificModifier : public UMemory, public Modifier { - public: - ScientificModifier(); - - void set(int32_t exponent, const ScientificHandler *handler); - - int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex, - UErrorCode &status) const U_OVERRIDE; - - int32_t getPrefixLength() const U_OVERRIDE; - - int32_t getCodePointCount() const U_OVERRIDE; - - bool isStrong() const U_OVERRIDE; - - bool containsField(Field field) const U_OVERRIDE; - - void getParameters(Parameters& output) const U_OVERRIDE; - - bool semanticallyEquivalent(const Modifier& other) const U_OVERRIDE; - - private: - int32_t fExponent; - const ScientificHandler *fHandler; -}; - -class ScientificHandler : public UMemory, public MicroPropsGenerator, public MultiplierProducer { - public: - ScientificHandler(const Notation *notation, const DecimalFormatSymbols *symbols, - const MicroPropsGenerator *parent); - - void - processQuantity(DecimalQuantity &quantity, MicroProps µs, UErrorCode &status) const U_OVERRIDE; - - int32_t getMultiplier(int32_t magnitude) const U_OVERRIDE; - - private: - const Notation::ScientificSettings& fSettings; - const DecimalFormatSymbols *fSymbols; - const MicroPropsGenerator *fParent; - - friend class ScientificModifier; -}; - -} // namespace impl -} // namespace number -U_NAMESPACE_END - -#endif //__NUMBER_SCIENTIFIC_H__ - -#endif /* #if !UCONFIG_NO_FORMATTING */ +// © 2017 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +#include "unicode/utypes.h" + +#if !UCONFIG_NO_FORMATTING +#ifndef __NUMBER_SCIENTIFIC_H__ +#define __NUMBER_SCIENTIFIC_H__ + +#include "number_types.h" + +U_NAMESPACE_BEGIN namespace number { +namespace impl { + +// Forward-declare +class ScientificHandler; + +class U_I18N_API ScientificModifier : public UMemory, public Modifier { + public: + ScientificModifier(); + + void set(int32_t exponent, const ScientificHandler *handler); + + int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex, + UErrorCode &status) const U_OVERRIDE; + + int32_t getPrefixLength() const U_OVERRIDE; + + int32_t getCodePointCount() const U_OVERRIDE; + + bool isStrong() const U_OVERRIDE; + + bool containsField(Field field) const U_OVERRIDE; + + void getParameters(Parameters& output) const U_OVERRIDE; + + bool semanticallyEquivalent(const Modifier& other) const U_OVERRIDE; + + private: + int32_t fExponent; + const ScientificHandler *fHandler; +}; + +class ScientificHandler : public UMemory, public MicroPropsGenerator, public MultiplierProducer { + public: + ScientificHandler(const Notation *notation, const DecimalFormatSymbols *symbols, + const MicroPropsGenerator *parent); + + void + processQuantity(DecimalQuantity &quantity, MicroProps µs, UErrorCode &status) const U_OVERRIDE; + + int32_t getMultiplier(int32_t magnitude) const U_OVERRIDE; + + private: + const Notation::ScientificSettings& fSettings; + const DecimalFormatSymbols *fSymbols; + const MicroPropsGenerator *fParent; + + friend class ScientificModifier; +}; + +} // namespace impl +} // namespace number +U_NAMESPACE_END + +#endif //__NUMBER_SCIENTIFIC_H__ + +#endif /* #if !UCONFIG_NO_FORMATTING */ |