diff options
author | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-30 16:26:42 +0200 |
---|---|---|
committer | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-30 16:26:42 +0200 |
commit | f3de85c77706e33b5072dd4b491ff76fdfebccd6 (patch) | |
tree | cc024e9a1b8ea081504fbd183fc48edf0ce3b875 /DiscoBot/Auxiliary | |
parent | 3a67ec1e4530f6b413228c2dc19dd90977ac381c (diff) | |
parent | 560f454c9beb2f691730b126fc6b3e23d68d6681 (diff) |
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'DiscoBot/Auxiliary')
-rw-r--r-- | DiscoBot/Auxiliary/Calculator/StringSolver.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/DiscoBot/Auxiliary/Calculator/StringSolver.cs b/DiscoBot/Auxiliary/Calculator/StringSolver.cs index 30c2134..6e5b3a9 100644 --- a/DiscoBot/Auxiliary/Calculator/StringSolver.cs +++ b/DiscoBot/Auxiliary/Calculator/StringSolver.cs @@ -9,8 +9,8 @@ /// </summary> public class StringSolver : ISolvable { - private readonly string input; - private readonly List<object> arguments = new List<object>(); + public readonly string input; + public readonly List<object> arguments = new List<object>(); public StringSolver(string input) { @@ -37,7 +37,7 @@ return ((ISolvable)this.arguments.First()).Solve(); } - private static string GetInner(ref string input) // extract the inner bracket an remove the section from the input string + public static string GetInner(ref string input) // extract the inner bracket an remove the section from the input string { int depth = 0; for (var index = 1; index < input.Length; index++) @@ -67,7 +67,7 @@ return string.Empty; } - private static Ops GetOps(char c) + public static Ops GetOps(char c) { switch (c) { @@ -85,7 +85,7 @@ } } - private static string ExpandParentheses(string input) // insert * between Parentheses and digits + public static string ExpandParentheses(string input) // insert * between Parentheses and digits { for (int i = 0; i < input.Length - 1; i++) { @@ -106,7 +106,7 @@ return input; } - private void AtomizeOperations(string workInput) + public void AtomizeOperations(string workInput) { for (var index = 0; index < workInput.Length; index++) { @@ -146,7 +146,7 @@ } } - private void NestOperations() + public void NestOperations() { foreach (Ops currentOp in Enum.GetValues(typeof(Ops))) { @@ -180,7 +180,7 @@ } } - private void HandleSpecialFormatting(ref int index, Ops op) + public void HandleSpecialFormatting(ref int index, Ops op) { var arg1 = this.arguments[index - 1]; if (arg1.GetType() == typeof(Ops)) |