terminology.js 777 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. //
  3. // Implementation of Encoding specification
  4. // https://encoding.spec.whatwg.org/
  5. //
  6. Object.defineProperty(exports, "__esModule", { value: true });
  7. //
  8. // 4. Terminology
  9. //
  10. /**
  11. * An ASCII byte is a byte in the range 0x00 to 0x7F, inclusive.
  12. * @param {number} a The number to test.
  13. * @return {boolean} True if a is in the range 0x00 to 0x7F, inclusive.
  14. */
  15. function isASCIIByte(a) {
  16. return 0x00 <= a && a <= 0x7F;
  17. }
  18. exports.isASCIIByte = isASCIIByte;
  19. /**
  20. * An ASCII code point is a code point in the range U+0000 to
  21. * U+007F, inclusive.
  22. */
  23. exports.isASCIICodePoint = isASCIIByte;
  24. /**
  25. * End-of-stream is a special token that signifies no more tokens
  26. * are in the stream.
  27. * @const
  28. */ exports.end_of_stream = -1;
  29. //# sourceMappingURL=terminology.js.map