summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/i18n/digitgrouping.h
diff options
context:
space:
mode:
authorSteven R. Loomis <srloomis@us.ibm.com>2018-07-09 13:46:16 -0700
committerAnna Henningsen <anna@addaleax.net>2018-07-11 00:15:23 +0200
commit538acead6670d711ddb71c0b852089b792c996e3 (patch)
tree917c6df14436e66d4883feb7bb9269480fce06ab /deps/icu-small/source/i18n/digitgrouping.h
parented715ef8900afa5056ebd5ef995e89eebd4987c2 (diff)
downloadandroid-node-v8-538acead6670d711ddb71c0b852089b792c996e3.tar.gz
android-node-v8-538acead6670d711ddb71c0b852089b792c996e3.tar.bz2
android-node-v8-538acead6670d711ddb71c0b852089b792c996e3.zip
deps: icu 62.1 bump (Unicode 11, CLDR 33.1)
- Full release notes: http://site.icu-project.org/download/62 Fixes: https://github.com/nodejs/node/issues/21452 PR-URL: https://github.com/nodejs/node/pull/21728 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'deps/icu-small/source/i18n/digitgrouping.h')
-rw-r--r--deps/icu-small/source/i18n/digitgrouping.h112
1 files changed, 0 insertions, 112 deletions
diff --git a/deps/icu-small/source/i18n/digitgrouping.h b/deps/icu-small/source/i18n/digitgrouping.h
deleted file mode 100644
index f3f8679b87..0000000000
--- a/deps/icu-small/source/i18n/digitgrouping.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// © 2016 and later: Unicode, Inc. and others.
-// License & terms of use: http://www.unicode.org/copyright.html
-/*
-*******************************************************************************
-* Copyright (C) 2015, International Business Machines
-* Corporation and others. All Rights Reserved.
-*******************************************************************************
-* digitgrouping.h
-*
-* created on: 2015jan6
-* created by: Travis Keep
-*/
-
-#ifndef __DIGITGROUPING_H__
-#define __DIGITGROUPING_H__
-
-#include "unicode/uobject.h"
-#include "unicode/utypes.h"
-
-U_NAMESPACE_BEGIN
-
-class IntDigitCountRange;
-
-/**
- * The digit grouping policy.
- */
-class U_I18N_API DigitGrouping : public UMemory {
-public:
- /**
- * Default is no digit grouping.
- */
- DigitGrouping() : fGrouping(0), fGrouping2(0), fMinGrouping(0) { }
-
- /**
- * Returns TRUE if this object is equal to rhs.
- */
- UBool equals(const DigitGrouping &rhs) const {
- return ((fGrouping == rhs.fGrouping) &&
- (fGrouping2 == rhs.fGrouping2) &&
- (fMinGrouping == rhs.fMinGrouping));
- }
-
- /**
- * Returns true if a separator is needed after a particular digit.
- * @param digitsLeftOfDecimal the total count of digits left of the
- * decimal.
- * @param digitPos 0 is the one's place; 1 is the 10's place; -1 is the
- * 1/10's place etc.
- */
- UBool isSeparatorAt(int32_t digitsLeftOfDecimal, int32_t digitPos) const;
-
- /**
- * Returns the total number of separators to be used to format a particular
- * number.
- * @param digitsLeftOfDecimal the total number of digits to the left of
- * the decimal.
- */
- int32_t getSeparatorCount(int32_t digitsLeftOfDecimal) const;
-
- /**
- * Returns true if grouping is used FALSE otherwise. When
- * isGroupingUsed() returns FALSE; isSeparatorAt always returns FALSE
- * and getSeparatorCount always returns 0.
- */
- UBool isGroupingUsed() const { return fGrouping > 0; }
-
- /**
- * Returns TRUE if this instance would not add grouping separators
- * when formatting value using the given constraint on digit count.
- *
- * @param value the value to format.
- * @param range the minimum and maximum digits for formatting value.
- */
- UBool isNoGrouping(
- int32_t positiveValue, const IntDigitCountRange &range) const;
-
- /**
- * Clears this instance so that digit grouping is not in effect.
- */
- void clear();
-
-public:
-
- /**
- * Primary grouping size. A value of 0, the default, or a negative
- * number causes isGroupingUsed() to return FALSE.
- */
- int32_t fGrouping;
-
- /**
- * Secondary grouping size. If > 0, this size is used instead of
- * 'fGrouping' for all but the group just to the left of the decimal
- * point. The default value of 0, or a negative value indicates that
- * there is no secondary grouping size.
- */
- int32_t fGrouping2;
-
- /**
- * If set (that is > 0), uses no grouping separators if fewer than
- * (fGrouping + fMinGrouping) digits appear left of the decimal place.
- * The default value for this field is 0.
- */
- int32_t fMinGrouping;
-private:
- UBool isGroupingEnabled(int32_t digitsLeftOfDecimal) const;
- int32_t getGrouping2() const;
- int32_t getMinGrouping() const;
-};
-
-U_NAMESPACE_END
-
-#endif // __DIGITGROUPING_H__