binary safety
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
:: isquot [ type 2 = ]
|
||||
:: vlen [ type 2 = if [ qlen ] [ slen ] ]
|
||||
:: s2l [ type 2 = if [] [ dup slen 0 = if [ drop [] ] [ uncons drop swap cons ] ] ]
|
||||
:: asc [ s2l 0 qget ]
|
||||
:: lcat [ [ rev ] dip swap uncons while [ [ swap ] dip swap cons swap uncons ] drop ]
|
||||
:: streq [ dup vlen [ swap dup vlen ] dip = if [ 1 while [ uncons if [ [ swap uncons drop ] dip = if [ dup qlen 0 = if [ drop drop 1 0 ] [ swap 1 ] ] [ drop drop 0 0 ] ] [ drop drop 1 0 ] ] ] [ drop drop 0 ] ]
|
||||
:: lower [ "" swap uncons while [ dup 65 >= [ dup 90 <= ] dip and if [ 32 + ] [] [ swap ] dip chr s+ swap uncons ] drop ]
|
||||
|
||||
Reference in New Issue
Block a user