fix base64
parent
9ac2214b62
commit
7f80b52619
|
@ -5,6 +5,8 @@ io.streams.byte-array kernel math namespaces
|
||||||
sequences strings io.crlf ;
|
sequences strings io.crlf ;
|
||||||
IN: base64
|
IN: base64
|
||||||
|
|
||||||
|
ERROR: malformed-base64 ;
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: read1-ignoring ( ignoring -- ch )
|
: read1-ignoring ( ignoring -- ch )
|
||||||
|
@ -18,8 +20,6 @@ IN: base64
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
||||||
nth ; inline
|
nth ; inline
|
||||||
|
|
||||||
ERROR: malformed-base64 ;
|
|
||||||
|
|
||||||
: base64>ch ( ch -- ch )
|
: base64>ch ( ch -- ch )
|
||||||
{
|
{
|
||||||
f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f
|
f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f
|
||||||
|
|
Loading…
Reference in New Issue