• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 61: Line 61:  
end
 
end
   −
p.lowerCase = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}
+
p.lowercase = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}
p.upperCase = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
+
p.uppercase = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
p.letters = p.mergeArrays(p.lowerCase,p.upperCase)
+
p.letters = p.mergeArrays(p.lowercase,p.uppercase)
      Line 79: Line 79:  
         end
 
         end
 
     end
 
     end
 +
end
 +
 +
-- returns number of elements and tables there are.
 +
-- recurse parameter is a boolean on whether to recurse on tables
 +
function p.getTableSize(table, recurse)
 +
    if recurse == nil then recurse = false end
 +
    local size = 0
 +
    for k,v in pairs(table) do
 +
        if type(v) == "table" and recurse then
 +
            size = size+getRowSize(v)
 +
        elseif v ~= "" and k ~= "label" then
 +
            size = size+1
 +
        end
 +
    end
 +
    return size
 
end
 
end
    
return p
 
return p
2,922

edits

Navigation menu