From 954991ede73597516183333a5f412436008389fa Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Fri, 12 Aug 2016 13:38:34 +0100 Subject: [PATCH] [CharUtils] - Add char-helper class. --- libse/CharUtils.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libse/CharUtils.cs 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'); + } + } +}