mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-05-14 08:45:18 +00:00
* Swkbd Applet Fixes * Forgot a full stop * Update src/Ryujinx.Ava/UI/Applet/SwkbdAppletDialog.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update src/Ryujinx/Ui/Applet/SwkbdAppletDialog.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
17 lines
653 B
C#
17 lines
653 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();
|
|
}
|
|
} |