⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

is_cjk_wide

Function is_cjk_wide 

Source
pub fn is_cjk_wide(ch: char) -> bool
Expand description

Check if a character is a CJK wide character (occupies 2 cells).

Based on Unicode East Asian Width property and common CJK ranges:

  • CJK Unified Ideographs (U+4E00-U+9FFF)
  • CJK Unified Ideographs Extension A (U+3400-U+4DBF)
  • CJK Compatibility Ideographs (U+F900-U+FAFF)
  • Hangul Syllables (U+AC00-U+D7AF)
  • Katakana (U+30A0-U+30FF)
  • Hiragana (U+3040-U+309F)
  • CJK Symbols and Punctuation (U+3000-U+303F)
  • Fullwidth Forms (U+FF01-U+FF60, U+FFE0-U+FFE6)
  • Bopomofo (U+3100-U+312F)
  • Enclosed CJK (U+3200-U+32FF)
  • CJK Compatibility (U+3300-U+33FF)
  • CJK Unified Ideographs Extension B+ (U+20000-U+2A6DF)