hqx-decode ( chars -- bytes )


Vocabulary
binhex.private

Inputs
charsan object


Outputs
bytesan object


Definition


: hqx-decode ( chars -- bytes )
[
[ 0 0 ] dip [
dup "\r\n\t " member?
[ drop ] [
hqx>ch swap {
{ 0 ~quotation~ }
{ 2 ~quotation~ }
{ 4 ~quotation~ }
{ 6 ~quotation~ }
} case
] if
] each 2drop
] B{ } make ;