PostfixNotation.PostfixNotation.NumberCharProcess C# (CSharp) Method

NumberCharProcess() private method

private NumberCharProcess ( string function, int &i ) : void
function string
i int
return void
        private void NumberCharProcess(string function, ref int i)
        {
            if (0 <= (int)function[i] && (int)function[i] <= 9)
            {
                while (i < function.Length && 0 <= (int)function[i] && (int)function[i] <= 9)
                {
                    postfixNotation = postfixNotation + function[i];
                    ++i;
                }
                postfixNotation = postfixNotation + " ";
                i--;
            }
            else
            {
                while (i < function.Length && !operations.Contains(function[i].ToString()))
                {
                    postfixNotation = postfixNotation + function[i];
                    ++i;
                }
                postfixNotation = postfixNotation + " ";
                i--;
            }
        }