diff options
1 files changed, 41 insertions, 0 deletions
| -rw-r--r-- | homework/81709/JSCompiler.Core/Utils.cs | 41 |
diff --git a/homework/81709/JSCompiler.Core/Utils.cs b/homework/81709/JSCompiler.Core/Utils.cs new file mode 100644 index 0000000..17210bc --- /dev/null +++ b/homework/81709/JSCompiler.Core/Utils.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace JSCompiler.Core +{ + public static class Utils + { + public static bool IsWhiteSpace(char ch) + { + return ch == ' '; + } + + public static bool IsCarriageReturn(char ch) + { + return ch == '\r'; + } + + public static bool IsNewLine(char ch) + { + return ch == '\n'; + } + + public static bool IsTab(char ch) + { + return ch == '\t'; + } + + public static bool IsStringSingleQuote(char ch) + { + return ch == '\''; + } + + public static bool IsStringDoubleQuote(char ch) + { + return ch == '"'; + } + } +} |
