strings.ts ×1

Frontier kind: Joint frontier

unlabeled · c_a619389bb55a

94 tests · 5048 LOC · 26 files · introduces 1 test · 46 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range46 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
728 ranges5048 lines · 26 files · Browse complete extent
All tests (intent)
94 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 46 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/strings.ts 46 introduced LOC · 1 range

Open complete file

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 /**