unicode.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. export declare const REPLACEMENT_CHARACTER = "\uFFFD";
  2. export declare enum CODE_POINTS {
  3. EOF = -1,
  4. NULL = 0,
  5. TABULATION = 9,
  6. CARRIAGE_RETURN = 13,
  7. LINE_FEED = 10,
  8. FORM_FEED = 12,
  9. SPACE = 32,
  10. EXCLAMATION_MARK = 33,
  11. QUOTATION_MARK = 34,
  12. AMPERSAND = 38,
  13. APOSTROPHE = 39,
  14. HYPHEN_MINUS = 45,
  15. SOLIDUS = 47,
  16. DIGIT_0 = 48,
  17. DIGIT_9 = 57,
  18. SEMICOLON = 59,
  19. LESS_THAN_SIGN = 60,
  20. EQUALS_SIGN = 61,
  21. GREATER_THAN_SIGN = 62,
  22. QUESTION_MARK = 63,
  23. LATIN_CAPITAL_A = 65,
  24. LATIN_CAPITAL_Z = 90,
  25. RIGHT_SQUARE_BRACKET = 93,
  26. GRAVE_ACCENT = 96,
  27. LATIN_SMALL_A = 97,
  28. LATIN_SMALL_Z = 122
  29. }
  30. export declare const SEQUENCES: {
  31. DASH_DASH: string;
  32. CDATA_START: string;
  33. DOCTYPE: string;
  34. SCRIPT: string;
  35. PUBLIC: string;
  36. SYSTEM: string;
  37. };
  38. export declare function isSurrogate(cp: number): boolean;
  39. export declare function isSurrogatePair(cp: number): boolean;
  40. export declare function getSurrogatePairCodePoint(cp1: number, cp2: number): number;
  41. export declare function isControlCodePoint(cp: number): boolean;
  42. export declare function isUndefinedCodePoint(cp: number): boolean;