/** * Simple bitset for parsing to identify if a character is a match within a bitset range. */ export default class ByteBitSet { readonly bitset: Uint32Array; has: (char: number) => boolean; /** * Kleene Star operator (zero or many) * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param end The end point to look at in the buffer. * @return {number} The end of the match. */ star: (input: Uint8Array, cursor: number, end: number) => number; /** * Plus operator (one or many) * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param end The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined. */ plus: (input: Uint8Array, cursor: number, end: number) => number | undefined; /** * Set a range of characters into the bitset. * * @param begin * @param end */ protected range(begin: number | string, end: number | string): void; /** * Set items in the bitfield corresponding to a byte or bytes. * * @param chars A byte as number, a string as a set of characters (ASCII) or a list * of bytes in a Uint8array. */ set(chars: number | string | Uint8Array): void; } //# sourceMappingURL=char_bit_set.d.ts.map