UNPKG

ret

Version:

Tokenizes a string that represents a regular expression.

19 lines (18 loc) 529 B
import { SetTokens } from './types'; /** * Finds character representations in str and convert all to * their respective characters. * * @param {string} str * @returns {string} */ export declare const strToChars: (str: string) => string; /** * Turns class into tokens * reads str until it encounters a ] not preceeded by a \ * * @param {string} str * @param {string} regexpStr * @returns {Array.<Array.<Object>, number>} */ export declare const tokenizeClass: (str: string, regexpStr: string) => [SetTokens, number];