SubtitleEdit/libse/CharUtils.cs

13 lines
323 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>
2017-07-10 04:43:37 +02:00
public static bool IsDigit(char ch) => (ch >= '0') && (ch <= '9');
2016-08-12 14:38:34 +02:00
}
}