SubtitleEdit/libse/CharUtils.cs

16 lines
359 B
C#
Raw Normal View History

2016-08-12 14:38:34 +02:00
namespace Nikse.SubtitleEdit.Core
{
public static class CharUtils
{
/// <summary>
/// Checks if character matches [0-9]
/// </summary>
/// <param name="ch"></param>
/// <returns></returns>
public static bool IsDigit(char ch)
{
return (ch >= '0') && (ch <= '9');
}
}
}