mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
16 lines
359 B
C#
16 lines
359 B
C#
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');
|
|
}
|
|
}
|
|
}
|