Beispiel #1
0
        string ReplaceMatch(Match match)
        {
            int i = (int)n;

            n++;
            if (match.Value.Length > 2)
            {
                if (char.IsDigit(match.Value[1]))
                {
                    return(stack.GetUint(i).ToString("X"));
                }
            }

            switch (match.Value[1])
            {
            case 's':
                return(stack.GetString(i));

            case 'd':
                return(stack.GetInt(i).ToString());
            }

            throw new NotSupportedException();
        }
Beispiel #2
0
        uint atoi(IStackAccess sa)
        {
            var str = sa.GetString(-1);

            return(uint.Parse(str));
        }