Update ECSAPI.lua

This commit is contained in:
Igor Timofeev
2015-09-21 09:17:00 +03:00
parent 71f3f3a395
commit a8782ee608

View File

@@ -7,7 +7,6 @@ local shell = require("shell")
local keyboard = require("keyboard")
local computer = require("computer")
local serialization = require("serialization")
local fs = require("filesystem")
local internet = require("internet")
local gpu = component.gpu
@@ -318,14 +317,6 @@ function ECSAPI.stringOptimize(sto4ka, indentatonWidth)
return stro4ka
end
--Сделать строку пригодной для отображения в ОпенКомпах
function ECSAPI.stringOptimize(sto4ka, indentatonWidth)
indentatonWidth = indentatonWidth or 2
sto4ka = string.gsub(sto4ka, "\r\n", "\n")
sto4ka = string.gsub(sto4ka, " ", string.rep(" ", indentatonWidth))
return stro4ka
end
--ИЗ ДЕСЯТИЧНОЙ В ШЕСТНАДЦАТИРИЧНУЮ
function ECSAPI.decToBase(IN,BASE)
local hexCode = "0123456789ABCDEFGHIJKLMNOPQRSTUVW"