From: Alex Sandro Queiroz e Silva <ventonegro@...>
Date: Mon, 03 Jan 2005 18:35:22 -0300
Hallo,
Ok, I was stupid. This will do:
-- checks if a string is in CamelCase
function isCamelCase(str)
local s, count = string.gsub(str, "%u%l+", "")
if count < 2 or s ~= "" then
return nil
else
return not nil
end
end
-alex