regex.d.ts 1.0 KB

12345678910111213141516171819202122
  1. import { Locale } from '../locale/locale.class';
  2. export declare const match1: RegExp;
  3. export declare const match2: RegExp;
  4. export declare const match3: RegExp;
  5. export declare const match4: RegExp;
  6. export declare const match6: RegExp;
  7. export declare const match1to2: RegExp;
  8. export declare const match3to4: RegExp;
  9. export declare const match5to6: RegExp;
  10. export declare const match1to3: RegExp;
  11. export declare const match1to4: RegExp;
  12. export declare const match1to6: RegExp;
  13. export declare const matchUnsigned: RegExp;
  14. export declare const matchSigned: RegExp;
  15. export declare const matchOffset: RegExp;
  16. export declare const matchShortOffset: RegExp;
  17. export declare const matchTimestamp: RegExp;
  18. export declare const matchWord: RegExp;
  19. export declare type RegExpTokenFn = (isStrict: boolean, locale: Locale) => RegExp;
  20. export declare function addRegexToken(token: string, regex: RegExp | RegExpTokenFn, strictRegex?: RegExp): void;
  21. export declare function getParseRegexForToken(token: string, locale: Locale): RegExp;
  22. export declare function regexEscape(str: string): string;