mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
deps: update icu to 78.3
PR-URL: https://github.com/nodejs/node/pull/62324 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
493ac40e12
commit
57ef845623
5 files changed
+30
-17
No files matched your search
+19
-11
@@ -557,9 +557,11 @@ class UTFImpl<
|
||||
public:
|
||||
// Handle ill-formed UTF-8
|
||||
U_FORCE_INLINE static CP32 sub() {
|
||||
switch (behavior) {
|
||||
case UTF_BEHAVIOR_NEGATIVE: return U_SENTINEL;
|
||||
case UTF_BEHAVIOR_FFFD: return 0xfffd;
|
||||
if constexpr (behavior == UTF_BEHAVIOR_NEGATIVE) {
|
||||
return U_SENTINEL;
|
||||
} else {
|
||||
static_assert(behavior == UTF_BEHAVIOR_FFFD);
|
||||
return 0xfffd;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -736,10 +738,13 @@ class UTFImpl<
|
||||
public:
|
||||
// Handle ill-formed UTF-16: One unpaired surrogate.
|
||||
U_FORCE_INLINE static CP32 sub(CP32 surrogate) {
|
||||
switch (behavior) {
|
||||
case UTF_BEHAVIOR_NEGATIVE: return U_SENTINEL;
|
||||
case UTF_BEHAVIOR_FFFD: return 0xfffd;
|
||||
case UTF_BEHAVIOR_SURROGATE: return surrogate;
|
||||
if constexpr (behavior == UTF_BEHAVIOR_NEGATIVE) {
|
||||
return U_SENTINEL;
|
||||
} else if constexpr (behavior == UTF_BEHAVIOR_FFFD) {
|
||||
return 0xfffd;
|
||||
} else {
|
||||
static_assert(behavior == UTF_BEHAVIOR_SURROGATE);
|
||||
return surrogate;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -822,10 +827,13 @@ class UTFImpl<
|
||||
public:
|
||||
// Handle ill-formed UTF-32
|
||||
U_FORCE_INLINE static CP32 sub(bool forSurrogate, CP32 surrogate) {
|
||||
switch (behavior) {
|
||||
case UTF_BEHAVIOR_NEGATIVE: return U_SENTINEL;
|
||||
case UTF_BEHAVIOR_FFFD: return 0xfffd;
|
||||
case UTF_BEHAVIOR_SURROGATE: return forSurrogate ? surrogate : 0xfffd;
|
||||
if constexpr (behavior == UTF_BEHAVIOR_NEGATIVE) {
|
||||
return U_SENTINEL;
|
||||
} else if constexpr (behavior == UTF_BEHAVIOR_FFFD) {
|
||||
return 0xfffd;
|
||||
} else {
|
||||
static_assert(behavior == UTF_BEHAVIOR_SURROGATE);
|
||||
return forSurrogate ? surrogate : 0xfffd;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -59,7 +59,7 @@
|
||||
* This value will change in the subsequent releases of ICU
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
#define U_ICU_VERSION_MINOR_NUM 2
|
||||
#define U_ICU_VERSION_MINOR_NUM 3
|
||||
|
||||
/** The current ICU patchlevel version as an integer.
|
||||
* This value will change in the subsequent releases of ICU
|
||||
@@ -132,7 +132,7 @@
|
||||
* This value will change in the subsequent releases of ICU
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
#define U_ICU_VERSION "78.2"
|
||||
#define U_ICU_VERSION "78.3"
|
||||
|
||||
/**
|
||||
* The current ICU library major version number as a string, for library name suffixes.
|
||||
@@ -151,7 +151,7 @@
|
||||
/** Data version in ICU4C.
|
||||
* @internal ICU 4.4 Internal Use Only
|
||||
**/
|
||||
#define U_ICU_DATA_VERSION "78.2"
|
||||
#define U_ICU_DATA_VERSION "78.3"
|
||||
#endif /* U_HIDE_INTERNAL_API */
|
||||
|
||||
/*===========================================================================
|
||||
|
||||
BIN
Binary file not shown.
+6
-1
@@ -158,12 +158,17 @@ NFRule::makeRules(UnicodeString& description,
|
||||
UnicodeString sbuf;
|
||||
int32_t orElseOp = description.indexOf(gVerticalLine);
|
||||
|
||||
uint64_t mod = util64_pow(rule1->radix, rule1->exponent);
|
||||
// we'll actually only split the rule into two rules if its
|
||||
// base value is an even multiple of its divisor (or it's one
|
||||
// of the special rules)
|
||||
if (rule1->baseValue > 0 && rule1->radix != 0 && mod == 0) {
|
||||
status = U_NUMBER_ARG_OUTOFBOUNDS_ERROR;
|
||||
return;
|
||||
}
|
||||
if ((rule1->baseValue > 0
|
||||
&& (rule1->radix != 0) // ICU-23109 Ensure next line won't "% 0"
|
||||
&& (rule1->baseValue % util64_pow(rule1->radix, rule1->exponent)) == 0)
|
||||
&& (rule1->baseValue % mod == 0))
|
||||
|| rule1->getType() == kImproperFractionRule
|
||||
|| rule1->getType() == kDefaultRule) {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[
|
||||
{
|
||||
"url": "https://github.com/unicode-org/icu/releases/download/release-78.2/icu4c-78.2-sources.tgz",
|
||||
"md5": "2bf8db43ccdc837e402ac773f17c7cf8"
|
||||
"url": "https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-sources.tgz",
|
||||
"md5": "a7b736b570ef0e180c96a31715a00c78"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user