Modulo:FunzioniGeneriche: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
TestSpaces
(Wikilink to final list)
(TestSpaces)
Riga 135: Riga 135:
end
end
--- Returns the color to use in CSS for the text depending on the luminance
--- Test function for array manipulation
-- of the background
--  
-- @param BackColor The hex code of the background color
-- @param frame
-- @return name of the color
-- @return Processed string
function p.TestArray(frame)
function p.TestArray(frame)
local TestGroups = {"A", "B", "C", "B", "C"}
local TestGroups = {"A", "B", "C", "B", "C"}
Riga 209: Riga 209:
return FinalString
return FinalString
end
--- Test function for spaces identifiaction
-- using regex
-- @param frame
-- @return Processed string
function p.TestSpaces(frame)
local TestString = "Seven of Nine"
return string.find(TestString, "[^%s]+$")
end
end
return p
return p

Menu di navigazione