June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
14
Task/URL-decoding/BaCon/url-decoding.bacon
Normal file
14
Task/URL-decoding/BaCon/url-decoding.bacon
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FUNCTION Url_Decode$(url$)
|
||||
|
||||
LOCAL result$
|
||||
|
||||
SPLIT url$ BY "%" TO item$ SIZE total
|
||||
FOR x = 1 TO total-1
|
||||
result$ = result$ & CHR$(DEC(LEFT$(item$[x], 2))) & MID$(item$[x], 3)
|
||||
NEXT
|
||||
RETURN item$[0] & result$
|
||||
|
||||
END FUNCTION
|
||||
|
||||
PRINT Url_Decode$("http%3A%2F%2Ffoo%20bar%2F")
|
||||
PRINT Url_Decode$("google.com/search?q=%60Abdu%27l-Bah%C3%A1")
|
||||
Loading…
Add table
Add a link
Reference in a new issue