示例#1
0
        private static CVar ToChars_caller(CVar obj, VariabelDatabase db, CVar[] stack, EnegyData data, Posision pos)
        {
            ArrayVariabel array = new ArrayVariabel(data, db, pos);
            foreach (char c in ((string)TypeHandler.ToObjectVariabel(obj).systemItems["str"]).ToCharArray())
                array.put(Types.toString(c.ToString(), data, db, pos), pos, data, db);

            return array;
        }
示例#2
0
        private static CVar Split_caller(CVar obj, VariabelDatabase db, CVar[] stack, EnegyData data, Posision pos)
        {
            ArrayVariabel array = new ArrayVariabel(data, db, pos);

            foreach (string i in ((string)TypeHandler.ToObjectVariabel(obj).systemItems["str"]).Split(new string[] { stack[0].toString(pos, data, db) }, StringSplitOptions.RemoveEmptyEntries))
            {
                array.put(array.getNextID(data, db, pos), Types.toString(i, data, db, pos), pos, data, db);
            }

            return array;
        }