695
696
export function isFullWidthCharacter(charCode: number): boolean {
697
>
// Do a cheap trick to better support wrapping of wide characters, treat them as 2 columns
strings.ts
698
>
// http://jrgraphix.net/research/unicode_blocks.php
699
>
// 2E80 - 2EFF CJK Radicals Supplement
700
>
// 2F00 - 2FDF Kangxi Radicals
701
>
// 2FF0 - 2FFF Ideographic Description Characters
702
>
// 3000 - 303F CJK Symbols and Punctuation
703
>
// 3040 - 309F Hiragana
704
>
// 30A0 - 30FF Katakana
705
>
// 3100 - 312F Bopomofo
706
>
// 3130 - 318F Hangul Compatibility Jamo
707
>
// 3190 - 319F Kanbun
708
>
// 31A0 - 31BF Bopomofo Extended
709
>
// 31F0 - 31FF Katakana Phonetic Extensions
710
>
// 3200 - 32FF Enclosed CJK Letters and Months
711
>
// 3300 - 33FF CJK Compatibility
712
>
// 3400 - 4DBF CJK Unified Ideographs Extension A
713
>
// 4DC0 - 4DFF Yijing Hexagram Symbols
714
>
// 4E00 - 9FFF CJK Unified Ideographs
715
>
// A000 - A48F Yi Syllables
716
>
// A490 - A4CF Yi Radicals
717
>
// AC00 - D7AF Hangul Syllables
718
>
// [IGNORE] D800 - DB7F High Surrogates
719
>
// [IGNORE] DB80 - DBFF High Private Use Surrogates
720
>
// [IGNORE] DC00 - DFFF Low Surrogates
721
>
// [IGNORE] E000 - F8FF Private Use Area
722
>
// F900 - FAFF CJK Compatibility Ideographs
723
>
// [IGNORE] FB00 - FB4F Alphabetic Presentation Forms
724
>
// [IGNORE] FB50 - FDFF Arabic Presentation Forms-A
725
>
// [IGNORE] FE00 - FE0F Variation Selectors
726
>
// [IGNORE] FE20 - FE2F Combining Half Marks
727
>
// [IGNORE] FE30 - FE4F CJK Compatibility Forms
728
>
// [IGNORE] FE50 - FE6F Small Form Variants
729
>
// [IGNORE] FE70 - FEFF Arabic Presentation Forms-B
730
>
// FF00 - FFEF Halfwidth and Fullwidth Forms
731
>
// [https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms]
732
>
// of which FF01 - FF5E fullwidth ASCII of 21 to 7E
733
>
// and FFE0 - FFE6 fullwidth symbol variants
734
>
// [IGNORE] and FF65 - FFDC halfwidth of Katakana and Hangul
735
>
// [IGNORE] FFF0 - FFFF Specials
736
>
return (
737
>
(charCode >= 0x2E80 && charCode <= 0xD7AF)
738
>
|| (charCode >= 0xF900 && charCode <= 0xFAFF)
739
>
|| (charCode >= 0xFF01 && charCode <= 0xFF5E)
740
>
|| (charCode >= 0xFFE0 && charCode <= 0xFFE6)
741
>
);
742
>
}
743
744
/**