added modbase64

master
Avril 4 years ago
parent c26dab4150
commit 5e31143270
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -14,9 +14,9 @@ const BASE64_VALIDATE_RE_STR: &'static str = r#"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z
lazy_static!{ lazy_static!{
static ref BASE64_CONV_TABLE: smallmap::Map<char, char> = smallmap![ static ref BASE64_CONV_TABLE: smallmap::Map<char, char> = smallmap![
{'/' => 'ł'}, {'/' => '_'},
{'+' => 'þ'}, {'+' => 'ł'},
{'=' => 'ø'}, {'=' => '-'},
]; ];
static ref BASE64_CONV_TABLE_REV: smallmap::Map<char, char> = BASE64_CONV_TABLE.clone().reverse(); static ref BASE64_CONV_TABLE_REV: smallmap::Map<char, char> = BASE64_CONV_TABLE.clone().reverse();

Loading…
Cancel
Save