CurryInfo: verify-non-fail-2.0.0 / Verify.WithSMT.encodeSpecialChars

definition:
 
encodeSpecialChars :: String -> String
encodeSpecialChars = concatMap encChar
 where
  encChar c | c `elem` "#$%[]()!,"
            = let oc = ord c
              in ['%', int2hex (oc `div` 16), int2hex(oc `mod` 16)]
            | otherwise = [c]

  int2hex i = if i<10 then chr (ord '0' + i)
                      else chr (ord 'A' + i - 10)
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Encode special characters in strings  
failfree:
 ()
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {() |-> {.._#lambda508}}
name:
 encodeSpecialChars
precedence:
 no precedence defined
result-values:
 {.._#lambda508}
signature:
 String -> String
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term