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; }
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; }