(code)
| 2990 | * @returns {boolean} |
| 2991 | */ |
| 2992 | const isFullWidthCodePoint = (code) => { |
| 2993 | // Code points are partially derived from: |
| 2994 | // https://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt |
| 2995 | return code >= 0x1100 && ( |
| 2996 | code <= 0x115f || // Hangul Jamo |
| 2997 | code === 0x2329 || // LEFT-POINTING ANGLE BRACKET |
| 2998 | code === 0x232a || // RIGHT-POINTING ANGLE BRACKET |
| 2999 | // CJK Radicals Supplement .. Enclosed CJK Letters and Months |
| 3000 | (code >= 0x2e80 && code <= 0x3247 && code !== 0x303f) || |
| 3001 | // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A |
| 3002 | (code >= 0x3250 && code <= 0x4dbf) || |
| 3003 | // CJK Unified Ideographs .. Yi Radicals |
| 3004 | (code >= 0x4e00 && code <= 0xa4c6) || |
| 3005 | // Hangul Jamo Extended-A |
| 3006 | (code >= 0xa960 && code <= 0xa97c) || |
| 3007 | // Hangul Syllables |
| 3008 | (code >= 0xac00 && code <= 0xd7a3) || |
| 3009 | // CJK Compatibility Ideographs |
| 3010 | (code >= 0xf900 && code <= 0xfaff) || |
| 3011 | // Vertical Forms |
| 3012 | (code >= 0xfe10 && code <= 0xfe19) || |
| 3013 | // CJK Compatibility Forms .. Small Form Variants |
| 3014 | (code >= 0xfe30 && code <= 0xfe6b) || |
| 3015 | // Halfwidth and Fullwidth Forms |
| 3016 | (code >= 0xff01 && code <= 0xff60) || |
| 3017 | (code >= 0xffe0 && code <= 0xffe6) || |
| 3018 | // Kana Supplement |
| 3019 | (code >= 0x1b000 && code <= 0x1b001) || |
| 3020 | // Enclosed Ideographic Supplement |
| 3021 | (code >= 0x1f200 && code <= 0x1f251) || |
| 3022 | // Miscellaneous Symbols and Pictographs 0x1f300 - 0x1f5ff |
| 3023 | // Emoticons 0x1f600 - 0x1f64f |
| 3024 | (code >= 0x1f300 && code <= 0x1f64f) || |
| 3025 | // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane |
| 3026 | (code >= 0x20000 && code <= 0x3fffd) |
| 3027 | ); |
| 3028 | }; |
| 3029 | |
| 3030 | } |
| 3031 |
no outgoing calls
no test coverage detected
searching dependent graphs…