23 lines
599 B
Lua
23 lines
599 B
Lua
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
local ____exports = {}
|
|
--- Сравнение SteamID64 как decimal string (п.15 плана): без tonumber/Number на id.
|
|
-- Возвращает -1 если a < b, 0 если равны, 1 если a > b.
|
|
function ____exports.compareSteamIdDecimalString(self, a, b)
|
|
local la = #a
|
|
local lb = #b
|
|
if la < lb then
|
|
return -1
|
|
end
|
|
if la > lb then
|
|
return 1
|
|
end
|
|
if a < b then
|
|
return -1
|
|
end
|
|
if a > b then
|
|
return 1
|
|
end
|
|
return 0
|
|
end
|
|
return ____exports
|