1 USING: help.markup help.syntax kernel math ;
5 { $values { "seq" "a sequence" } { "base64" "a string of base64 characters" } }
6 { $description "Converts a sequence to its base64 representation by taking six bits at a time as an index into a lookup table containing alphanumerics, '+', and '/'. The result is padded with '=' if the input was not a multiple of six bits." }
8 { $unchecked-example "\"The monorail is a free service.\" >base64 ." "VGhlIG1vbm9yYWlsIGlzIGEgZnJlZSBzZXJ2aWNlLg==" }
10 { $see-also base64> } ;
13 { $values { "base64" "a string of base64 characters" } { "str" "a string" } }
14 { $description "Converts a string in base64 encoding back into its binary representation." }
16 { $unchecked-example "\"VGhlIG1vbm9yYWlsIGlzIGEgZnJlZSBzZXJ2aWNlLg==\" base64> ." "\"The monorail is a free service.\"" }
18 { $notes "This word will throw if the input string contains characters other than those allowed in base64 encodings." }
19 { $see-also >base64 } ;