definition: |
decodeSpecialChars :: String -> String decodeSpecialChars [] = [] decodeSpecialChars (c:cs) | c == '%' = let n = case readHex (take 2 cs) of [(h,"")] -> h _ -> 0 in chr n : decodeSpecialChars (drop 2 cs) | otherwise = c : decodeSpecialChars cs |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
Translates urlencoded string into equivalent ASCII string. |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({[]}) |-> {[]} || ({:}) |-> {:}} |
name: |
decodeSpecialChars |
precedence: |
no precedence defined |
result-values: |
{:,[]} |
signature: |
String -> String |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |