-*
+/*
* Copyright (c) 2010 Nick Galbreath
* http://code.google.com/p/stringencoders/source/browse/#svn/trunk/javascript
*
}
return idx;
}
-
base64.decode = function(s) {
+ return base64.decodeToArray(s).join('');
+}
+base64.decodeToArray = function(s) {
// convert to string
s = '' + s;
var getbyte64 = base64.getbyte64;
x.push(String.fromCharCode(b10 >> 16));
break;
}
- return x.join('');
+ return x;
}
base64.getbyte = function(s,i) {