Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,13 @@
|
|||
MTF_Encode(string){
|
||||
str := "abcdefghijklmnopqrstuvwxyz"
|
||||
loop, parse, string
|
||||
code .= (A_Index>1 ? ",":"") . InStr(str, A_LoopField) - 1 , str := A_LoopField . StrReplace(str, A_LoopField)
|
||||
return code
|
||||
}
|
||||
|
||||
MTF_Decode(code){
|
||||
str := "abcdefghijklmnopqrstuvwxyz"
|
||||
loop, parse, code, `,
|
||||
string .= (letter := SubStr(str, A_LoopField+1, 1)) , str := letter . StrReplace(str, letter)
|
||||
return string
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
testStrings = broood,bananaaa,hiphophiphop
|
||||
loop, parse, testStrings, `,
|
||||
Output .= A_LoopField "`t" MTF_Encode(A_LoopField) "`t" MTF_Decode(MTF_Encode(A_LoopField)) "`n"
|
||||
MsgBox % Output
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue