Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/URL-decoding/Zkl/url-decoding-1.zkl
Normal file
3
Task/URL-decoding/Zkl/url-decoding-1.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
"http%3A%2F%2Ffoo%20bar%2F".pump(String, // push each char through these fcns:
|
||||
fcn(c){ if(c=="%") return(Void.Read,2); return(Void.Skip,c) },// %-->read 2 chars else pass through
|
||||
fcn(_,b,c){ (b+c).toInt(16).toChar() }) // "%" (ignored) "3"+"1"-->0x31-->"1"
|
||||
2
Task/URL-decoding/Zkl/url-decoding-2.zkl
Normal file
2
Task/URL-decoding/Zkl/url-decoding-2.zkl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
var Curl=Import.lib("zklCurl");
|
||||
Curl.urlDecode("http%3A%2F%2Ffoo%20bar%2F");
|
||||
Loading…
Add table
Add a link
Reference in a new issue