mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-22 02:31:12 +02:00
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
18 lines
651 B
C#
18 lines
651 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|
{
|
|
public static partial class CJKCharacterValidation
|
|
{
|
|
public static bool IsCJK(char value)
|
|
{
|
|
Regex regex = CJKRegex();
|
|
|
|
return regex.IsMatch(value.ToString());
|
|
}
|
|
|
|
[GeneratedRegex("\\p{IsHangulJamo}|\\p{IsCJKRadicalsSupplement}|\\p{IsCJKSymbolsandPunctuation}|\\p{IsEnclosedCJKLettersandMonths}|\\p{IsCJKCompatibility}|\\p{IsCJKUnifiedIdeographsExtensionA}|\\p{IsCJKUnifiedIdeographs}|\\p{IsHangulSyllables}|\\p{IsCJKCompatibilityForms}")]
|
|
private static partial Regex CJKRegex();
|
|
}
|
|
}
|