[CharUtils] - Add char-helper class.

This commit is contained in:
Ivandro Ismael 2016-08-12 13:38:34 +01:00
parent 8bd93722d2
commit 954991ede7
No known key found for this signature in database
GPG Key ID: A8832757DEFB7EDC

15
libse/CharUtils.cs Normal file
View File

@ -0,0 +1,15 @@
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');
}
}
}