[Pkg-javascript-commits] [node-iconv-lite] 12/83: cosmetic fixes
matthew pideil
mpideil-guest at moszumanska.debian.org
Tue Apr 1 19:56:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
mpideil-guest pushed a commit to branch master
in repository node-iconv-lite.
commit 7769f905adee5ea3bec099700a01abb0723065ed
Author: adam <anton at adamansky.com>
Date: Thu Feb 16 23:33:31 2012 +0700
cosmetic fixes
---
encodings/cyrillic.js | 10 +++++-----
index.js | 14 +++++++-------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/encodings/cyrillic.js b/encodings/cyrillic.js
index ae571ed..716b515 100644
--- a/encodings/cyrillic.js
+++ b/encodings/cyrillic.js
@@ -7,7 +7,7 @@ module.exports = {
// http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1251.txt
"windows1251": {
type: "singlebyte",
- chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬\xAD®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
+ chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬\xAD®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
},
"win1251": "windows1251",
"cp1251": "windows1251",
@@ -18,7 +18,7 @@ module.exports = {
// http://unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT
"koi8r": {
type: 'singlebyte',
- chars: '─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ',
+ chars: '─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ'
},
"cp20866": "koi8r",
20866: "koi8r",
@@ -27,9 +27,9 @@ module.exports = {
// http://unicode.org/Public/MAPPINGS/ISO8859/8859-5.TXT
"iso88595": {
type: 'singlebyte',
- chars: '
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ',
+ chars: '
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ'
},
"cp28595": "iso88595",
- 28595: "iso88595",
-}
+ 28595: "iso88595"
+};
diff --git a/index.js b/index.js
index 6f5eab9..cbc0366 100644
--- a/index.js
+++ b/index.js
@@ -12,8 +12,8 @@ module.exports = iconv = {
// Get correct codec for given encoding.
getCodec: function(encoding) {
- enc = encoding || "utf8";
- codecOptions = undefined;
+ var enc = encoding || "utf8";
+ var codecOptions = undefined;
while (1) {
if (getType(enc) === "String")
enc = enc.replace(/[- ]/g, "").toLowerCase();
@@ -46,7 +46,7 @@ module.exports = iconv = {
},
fromEncoding: function(buf) {
return ensureBuffer(buf).toString(options.originalEncoding);
- },
+ }
};
},
utf8: "internal",
@@ -110,7 +110,7 @@ module.exports = iconv = {
newBuf[idx2+1] = charsBuf[idx1+1];
}
return newBuf.toString('ucs2');
- },
+ }
};
},
@@ -175,9 +175,9 @@ module.exports = iconv = {
return newBuf.toString('ucs2');
}
}
- },
- },
-}
+ }
+ }
+};
// Add aliases to convert functions
iconv.encode = iconv.toEncoding;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-iconv-lite.git
More information about the Pkg-javascript-commits
mailing list