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