From 632781d1adf54287ecfe7cbcbc17074e14a769b2 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sat, 29 Sep 2018 23:59:42 +0200 Subject: added database methods --- DiscoBot/Auxiliary/Calculator/StringSolver.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'DiscoBot/Auxiliary/Calculator') 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 @@ /// public class StringSolver : ISolvable { - private readonly string input; - private readonly List arguments = new List(); + public readonly string input; + public readonly List arguments = new List(); 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)) -- cgit v1.2.3-54-g00ecf