#include "src/inspector/v8-string-conversions.h"
#include <limits>
#include <vector>
#include "src/base/logging.h"
Go to the source code of this file.
◆ U16_LEAD
#define U16_LEAD |
( |
| supplementary | ) |
|
Value:(UChar)(((supplementary) >> 10) + 0xD7C0)
Get the lead surrogate (0xD800..0xDBFF) for a supplementary code point (0x010000..0x10FFFF).
- Parameters
-
supplementary | 32-bit code point (U+010000..U+10FFFF) |
- Returns
- lead surrogate (U+D800..U+DBFF) for supplementary @stable ICU 2.4
Definition at line 164 of file v8-string-conversions.cc.
◆ U16_TRAIL
#define U16_TRAIL |
( |
| supplementary | ) |
|
Value:(UChar)(((supplementary)&0x3FF) | 0xDC00)
Get the trail surrogate (0xDC00..0xDFFF) for a supplementary code point (0x010000..0x10FFFF).
- Parameters
-
supplementary | 32-bit code point (U+010000..U+10FFFF) |
- Returns
- trail surrogate (U+DC00..U+DFFF) for supplementary @stable ICU 2.4
Definition at line 173 of file v8-string-conversions.cc.
◆ U_IS_BMP
Value:((uint32_t)(c) <= 0xFFFF)
Is this code point a BMP code point (U+0000..U+ffff)?
- Parameters
-
- Returns
- TRUE or FALSE @stable ICU 2.8
Definition at line 139 of file v8-string-conversions.cc.
◆ U_IS_SUPPLEMENTARY
#define U_IS_SUPPLEMENTARY |
( |
| c | ) |
|
Value:((uint32_t)((c)-0x010000) <= 0xFFFFF)
Is this code point a supplementary code point (U+010000..U+10FFFF)?
- Parameters
-
- Returns
- TRUE or FALSE @stable ICU 2.8
Definition at line 147 of file v8-string-conversions.cc.
◆ U_IS_SURROGATE
#define U_IS_SURROGATE |
( |
| c | ) |
|
Value:(((c)&0xFFFFF800) == 0xD800)
Is this code point a surrogate (U+d800..U+dfff)?
- Parameters
-
- Returns
- TRUE or FALSE @stable ICU 2.4
Definition at line 155 of file v8-string-conversions.cc.