diff --git a/libse/CharUtils.cs b/libse/CharUtils.cs new file mode 100644 index 000000000..40adb6715 --- /dev/null +++ b/libse/CharUtils.cs @@ -0,0 +1,15 @@ +namespace Nikse.SubtitleEdit.Core +{ + public static class CharUtils + { + /// + /// Checks if character matches [0-9] + /// + /// + /// + public static bool IsDigit(char ch) + { + return (ch >= '0') && (ch <= '9'); + } + } +}