diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-03-07 08:54:53 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-03-07 16:48:52 +0100 |
commit | 88786fecff336342a56e6f2e7ff3b286be716e47 (patch) | |
tree | 92e6ba5b8ac8dae1a058988d20c9d27bfa654390 /deps/v8/src/inspector/string-16.cc | |
parent | 4e86f9b5ab83cbabf43839385bf383e6a7ef7d19 (diff) | |
download | node-new-88786fecff336342a56e6f2e7ff3b286be716e47.tar.gz |
deps: update V8 to 6.5.254.31
PR-URL: https://github.com/nodejs/node/pull/18453
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'deps/v8/src/inspector/string-16.cc')
-rw-r--r-- | deps/v8/src/inspector/string-16.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/deps/v8/src/inspector/string-16.cc b/deps/v8/src/inspector/string-16.cc index 36a0cca26c..dc753fee40 100644 --- a/deps/v8/src/inspector/string-16.cc +++ b/deps/v8/src/inspector/string-16.cc @@ -162,15 +162,15 @@ ConversionResult convertUTF16ToUTF8(const UChar** sourceStart, * @return TRUE or FALSE * @stable ICU 2.8 */ -#define U_IS_BMP(c) ((uint32_t)(c) <= 0xffff) +#define U_IS_BMP(c) ((uint32_t)(c) <= 0xFFFF) /** - * Is this code point a supplementary code point (U+10000..U+10ffff)? + * Is this code point a supplementary code point (U+010000..U+10FFFF)? * @param c 32-bit code point * @return TRUE or FALSE * @stable ICU 2.8 */ -#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000) <= 0xfffff) +#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x010000) <= 0xFFFFF) /** * Is this code point a surrogate (U+d800..U+dfff)? @@ -178,25 +178,25 @@ ConversionResult convertUTF16ToUTF8(const UChar** sourceStart, * @return TRUE or FALSE * @stable ICU 2.4 */ -#define U_IS_SURROGATE(c) (((c)&0xfffff800) == 0xd800) +#define U_IS_SURROGATE(c) (((c)&0xFFFFF800) == 0xD800) /** - * Get the lead surrogate (0xd800..0xdbff) for a - * supplementary code point (0x10000..0x10ffff). - * @param supplementary 32-bit code point (U+10000..U+10ffff) - * @return lead surrogate (U+d800..U+dbff) for supplementary + * Get the lead surrogate (0xD800..0xDBFF) for a + * supplementary code point (0x010000..0x10FFFF). + * @param supplementary 32-bit code point (U+010000..U+10FFFF) + * @return lead surrogate (U+D800..U+DBFF) for supplementary * @stable ICU 2.4 */ -#define U16_LEAD(supplementary) (UChar)(((supplementary) >> 10) + 0xd7c0) +#define U16_LEAD(supplementary) (UChar)(((supplementary) >> 10) + 0xD7C0) /** - * Get the trail surrogate (0xdc00..0xdfff) for a - * supplementary code point (0x10000..0x10ffff). - * @param supplementary 32-bit code point (U+10000..U+10ffff) - * @return trail surrogate (U+dc00..U+dfff) for supplementary + * Get the trail surrogate (0xDC00..0xDFFF) for a + * supplementary code point (0x010000..0x10FFFF). + * @param supplementary 32-bit code point (U+010000..U+10FFFF) + * @return trail surrogate (U+DC00..U+DFFF) for supplementary * @stable ICU 2.4 */ -#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff) | 0xdc00) +#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3FF) | 0xDC00) // This must be called with the length pre-determined by the first byte. // If presented with a length > 4, this returns false. The Unicode @@ -329,7 +329,7 @@ ConversionResult convertUTF8ToUTF16(const char** sourceStart, } *target++ = U16_LEAD(character); *target++ = U16_TRAIL(character); - orAllData = 0xffff; + orAllData = 0xFFFF; } else { if (strict) { source -= utf8SequenceLength; // return to the start @@ -344,7 +344,7 @@ ConversionResult convertUTF8ToUTF16(const char** sourceStart, *sourceStart = source; *targetStart = target; - if (sourceAllASCII) *sourceAllASCII = !(orAllData & ~0x7f); + if (sourceAllASCII) *sourceAllASCII = !(orAllData & ~0x7F); return result; } |