mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-08 08:00:34 +00:00
Formatting.
This commit is contained in:
1 parent
a8150a84be
commit
22b882648b
1 file changed
+4
-4
@@ -229,12 +229,12 @@ CFData.encodeBase64Array = function(input)
|
||||
// pad with "=" and revert array to previous state
|
||||
if (pad > 0)
|
||||
{
|
||||
output[output.length-1] = "=";
|
||||
output[output.length - 1] = "=";
|
||||
input.pop();
|
||||
}
|
||||
if (pad > 1)
|
||||
{
|
||||
output[output.length-2] = "=";
|
||||
output[output.length - 2] = "=";
|
||||
input.pop();
|
||||
}
|
||||
|
||||
@@ -279,8 +279,8 @@ CFData.bytesToUtf16String = function(bytes)
|
||||
{
|
||||
// Strings are encoded with 16 bits per character.
|
||||
var temp = [];
|
||||
for (var i = 0; i < bytes.length; i+=2)
|
||||
temp.push(bytes[i+1] << 8 | bytes[i]);
|
||||
for (var i = 0; i < bytes.length; i += 2)
|
||||
temp.push(bytes[i + 1] << 8 | bytes[i]);
|
||||
// This is relatively efficient, I think:
|
||||
return String.fromCharCode.apply(NULL, temp);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user