InTesting

KS2Hash (KS2Hash.constants)

Oct 13th, 2021 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local constants = {}
  2.  
  3. function charRange(s, e)
  4.     assert(type(s) == 'string' and type(e)=='string')
  5.    
  6.     local res = ''
  7.    
  8.     for i = s:byte(), e:byte()do
  9.         res ..= string.char(i)
  10.     end
  11.    
  12.     return res
  13. end
  14.  
  15. constants.newBase = charRange(' ', '{') .. '}~'
  16.  
  17.  
  18. return constants
Add Comment
Please, Sign In to add comment