strong-tie/inbound-calls
0
1"use strict";2Object.defineProperty(exports, "__esModule", { value: true });3exports.anyChar = exports.notWhitespace = exports.whitespace = exports.notInts = exports.ints = exports.notWords = exports.words = void 0;4const types_1 = require("./types");5const INTS = () => [{ type: types_1.types.RANGE, from: 48, to: 57 }];6const WORDS = () => [7 { type: types_1.types.CHAR, value: 95 },8 { type: types_1.types.RANGE, from: 97, to: 122 },9 { type: types_1.types.RANGE, from: 65, to: 90 },10 { type: types_1.types.RANGE, from: 48, to: 57 },11];12const WHITESPACE = () => [13 { type: types_1.types.CHAR, value: 9 },14 { type: types_1.types.CHAR, value: 10 },15 { type: types_1.types.CHAR, value: 11 },16 { type: types_1.types.CHAR, value: 12 },17 { type: types_1.types.CHAR, value: 13 },18 { type: types_1.types.CHAR, value: 32 },19 { type: types_1.types.CHAR, value: 160 },20 { type: types_1.types.CHAR, value: 5760 },21 { type: types_1.types.RANGE, from: 8192, to: 8202 },22 { type: types_1.types.CHAR, value: 8232 },23 { type: types_1.types.CHAR, value: 8233 },24 { type: types_1.types.CHAR, value: 8239 },25 { type: types_1.types.CHAR, value: 8287 },26 { type: types_1.types.CHAR, value: 12288 },27 { type: types_1.types.CHAR, value: 65279 },28];29const NOTANYCHAR = () => [30 { type: types_1.types.CHAR, value: 10 },31 { type: types_1.types.CHAR, value: 13 },32 { type: types_1.types.CHAR, value: 8232 },33 { type: types_1.types.CHAR, value: 8233 },34];35// Predefined class objects.36exports.words = () => ({ type: types_1.types.SET, set: WORDS(), not: false });37exports.notWords = () => ({ type: types_1.types.SET, set: WORDS(), not: true });38exports.ints = () => ({ type: types_1.types.SET, set: INTS(), not: false });39exports.notInts = () => ({ type: types_1.types.SET, set: INTS(), not: true });40exports.whitespace = () => ({ type: types_1.types.SET, set: WHITESPACE(), not: false });41exports.notWhitespace = () => ({ type: types_1.types.SET, set: WHITESPACE(), not: true });42exports.anyChar = () => ({ type: types_1.types.SET, set: NOTANYCHAR(), not: true });43//# sourceMappingURL=sets.js.map