You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
777 B

"use strict";
//
// Implementation of Encoding specification
// https://encoding.spec.whatwg.org/
//
Object.defineProperty(exports, "__esModule", { value: true });
//
// 4. Terminology
//
/**
* An ASCII byte is a byte in the range 0x00 to 0x7F, inclusive.
* @param {number} a The number to test.
* @return {boolean} True if a is in the range 0x00 to 0x7F, inclusive.
*/
function isASCIIByte(a) {
return 0x00 <= a && a <= 0x7F;
}
exports.isASCIIByte = isASCIIByte;
/**
* An ASCII code point is a code point in the range U+0000 to
* U+007F, inclusive.
*/
exports.isASCIICodePoint = isASCIIByte;
/**
* End-of-stream is a special token that signifies no more tokens
* are in the stream.
* @const
*/ exports.end_of_stream = -1;
//# sourceMappingURL=terminology.js.map