mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
[CharUtils] - Add char-helper class.
This commit is contained in:
parent
8bd93722d2
commit
954991ede7
15
libse/CharUtils.cs
Normal file
15
libse/CharUtils.cs
Normal 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');
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user