/ src / Ryujinx.HLE / HOS / Applets / SoftwareKeyboard / CJKCharacterValidation.cs
CJKCharacterValidation.cs
 1  using System.Text.RegularExpressions;
 2  
 3  namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
 4  {
 5      public static partial class CJKCharacterValidation
 6      {
 7          public static bool IsCJK(char value)
 8          {
 9              Regex regex = CJKRegex();
10  
11              return regex.IsMatch(value.ToString());
12          }
13  
14          [GeneratedRegex("\\p{IsHangulJamo}|\\p{IsCJKRadicalsSupplement}|\\p{IsCJKSymbolsandPunctuation}|\\p{IsEnclosedCJKLettersandMonths}|\\p{IsCJKCompatibility}|\\p{IsCJKUnifiedIdeographsExtensionA}|\\p{IsCJKUnifiedIdeographs}|\\p{IsHangulSyllables}|\\p{IsCJKCompatibilityForms}")]
15          private static partial Regex CJKRegex();
16      }
17  }