travis ci, cleanup
This commit is contained in:
parent
7f82a455b6
commit
0a1b9ae42e
|
@ -0,0 +1,4 @@
|
||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- "0.8"
|
||||||
|
- "0.10"
|
|
@ -33,8 +33,6 @@ ISO_2022.prototype.match = function(det) {
|
||||||
var quality;
|
var quality;
|
||||||
|
|
||||||
// TODO: refactor me
|
// TODO: refactor me
|
||||||
// int match(byte [] text, int textLen, byte [][] escapeSequences) {
|
|
||||||
// det.fInputBytes, det.fInputLen
|
|
||||||
var text = det.fInputBytes;
|
var text = det.fInputBytes;
|
||||||
var textLen = det.fInputLen;
|
var textLen = det.fInputLen;
|
||||||
|
|
||||||
|
|
|
@ -82,9 +82,7 @@ function mbcs() {};
|
||||||
* @param det The CharsetDetector, which contains the input text
|
* @param det The CharsetDetector, which contains the input text
|
||||||
* to be checked for being in this charset.
|
* to be checked for being in this charset.
|
||||||
* @return Two values packed into one int (Damn java, anyhow)
|
* @return Two values packed into one int (Damn java, anyhow)
|
||||||
* <br/>
|
|
||||||
* bits 0-7: the match confidence, ranging from 0-100
|
* bits 0-7: the match confidence, ranging from 0-100
|
||||||
* <br/>
|
|
||||||
* bits 8-15: The match reason, an enum-like value.
|
* bits 8-15: The match reason, an enum-like value.
|
||||||
*/
|
*/
|
||||||
mbcs.prototype.match = function(det) {
|
mbcs.prototype.match = function(det) {
|
||||||
|
@ -218,7 +216,6 @@ module.exports.sjis = function() {
|
||||||
|
|
||||||
var firstByte;
|
var firstByte;
|
||||||
firstByte = iter.charValue = iter.nextByte(det);
|
firstByte = iter.charValue = iter.nextByte(det);
|
||||||
// console.log('fb', firstByte)
|
|
||||||
if (firstByte < 0) {
|
if (firstByte < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -438,8 +435,8 @@ module.exports.gb_18030 = function() {
|
||||||
this.language = function() {
|
this.language = function() {
|
||||||
return "zh";
|
return "zh";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
|
||||||
* Get the next character value for EUC based encodings.
|
* Get the next character value for EUC based encodings.
|
||||||
* Character "value" is simply the raw bytes that make up the character
|
* Character "value" is simply the raw bytes that make up the character
|
||||||
* packed into an int.
|
* packed into an int.
|
||||||
|
|
24
package.json
24
package.json
|
@ -3,22 +3,34 @@
|
||||||
"version": "0.0.6",
|
"version": "0.0.6",
|
||||||
"homepage": "https://github.com/runk/node-chardet",
|
"homepage": "https://github.com/runk/node-chardet",
|
||||||
"description": "Character detector",
|
"description": "Character detector",
|
||||||
"keywords": ["encoding", "character", "utf8", "detector", "chardet", "icu"],
|
"keywords": [
|
||||||
|
"encoding",
|
||||||
|
"character",
|
||||||
|
"utf8",
|
||||||
|
"detector",
|
||||||
|
"chardet",
|
||||||
|
"icu"
|
||||||
|
],
|
||||||
"author": "Dmitry Shirokov <deadrunk@gmail.com>",
|
"author": "Dmitry Shirokov <deadrunk@gmail.com>",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type":"git",
|
"type": "git",
|
||||||
"url":"git@github.com:runk/node-chardet.git"
|
"url": "git@github.com:runk/node-chardet.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"mail":"deadrunk@gmail.com",
|
"mail": "deadrunk@gmail.com",
|
||||||
"url":"http://github.com/runk/node-chardet/issues"
|
"url": "http://github.com/runk/node-chardet/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha -R spec --recursive"
|
"test": "mocha -R spec --recursive"
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"engine": {
|
"engine": {
|
||||||
"node": ">=0.8.0", "npm": "1"
|
"node": ">=0.8.0",
|
||||||
|
"npm": "1"
|
||||||
|
},
|
||||||
|
"readmeFilename": "README.md",
|
||||||
|
"directories": {
|
||||||
|
"test": "test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue