17 lines
277 B
Plaintext
17 lines
277 B
Plaintext
|
import string
|
||
|
|
||
|
def tolower(astr)
|
||
|
return string.tr(astr,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")
|
||
|
end
|
||
|
|
||
|
def nospaces(astr)
|
||
|
return string.tr(astr," ","")
|
||
|
end
|
||
|
|
||
|
var stringe = module('stringe')
|
||
|
stringe.tolower=tolower
|
||
|
stringe.nospaces=nospaces
|
||
|
|
||
|
return stringe
|
||
|
|