September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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("zklCurl");
|
||||
Curl.urlDecode("http%3A%2F%2Ffoo%20bar%2F");
|
||||
Loading…
Add table
Add a link
Reference in a new issue