thRegExp property

RegExp thRegExp
final

RegExp for the Thai language (PASSED) Language has code => LanguageCode.th

Implementation

static final RegExp thRegExp = RegExp(
  r'(?:'
  // 1. Thai vowels/tones (เ-ไ, ั ิ ี ึ ื)
  r'[\u0E40-\u0E44]' // Leading vowels (เ, แ, โ, ไ, ใ)
  r'|'
  r'[\u0E48-\u0E4C]' // Tone marks (่, ้, ๊, ๋, ์)

  // 2. Thai consonant + vowel combinations
  r'|'
  r'[\u0E01-\u0E2E][\u0E34-\u0E3A]' // Consonant + trailing vowel (ิ, ี, ึ, ื)

  // 3. Full Thai character range (fallback)
  r'|'
  r'[\u0E00-\u0E7F]' // Covers entire Thai Unicode block

  r')',
  caseSensitive: false,
  unicode: true,
);