namespace Nikse.SubtitleEdit.Core
{
public static class CharUtils
{
///
/// Checks if character matches [0-9]
///
///
public static bool IsDigit(char ch) => ch >= '0' && ch <= '9';
///
/// Checks if given character is hexadecimal
///
///
public static bool IsHexadecimal(char ch) => ch >= '0' && ch <= '9' || ch >= 'a' && ch <= 'f' || ch >= 'A' && ch <= 'F';
///
/// Checks if character is between A-Z or a-z
///
public static bool IsEnglishAlphabet(char ch) => ch >= 'A' && ch <= 'z' && (ch <= 'Z' || ch >= 'a');
}
}