标签:style ar sp strong on bs as line nbsp
模块说明
base64编解码,RFC2045和RFC4648,如果有疑问可看RFC。
Data Types
ascii_string() = [1..255]
ascii_binary() = binary()
ascii 的字符串或者binary
导出函数
例子
base64:encode("123") = <<"MTIz">>.
base64:encode(<<"123">>) = <<"MTIz">>.
base64:encode_to_string("123") = "MTIz".
base64:encode_to_string(<<"123">>) = "MTIz".
base64:decode(<<"MTIz">>) = <<"123">>.
base64:decode("MTIz") = <<"123">>.
base64:decode_to_string("MTIz") = "123".
base64:decode_to_string(<<"MTIz" >>) = "123".
base64:encode(" 123 ") = <<"IDEyMyA=">>.
base64:decode(" MTIz ") = <<"123">>.
标签:style ar sp strong on bs as line nbsp
原文地址:http://www.cnblogs.com/rubyist/p/4111757.html