Check if character is a lowercase hex digit (0-9, a-f)
(c: string)
| 507 | |
| 508 | /** Check if character is a lowercase hex digit (0-9, a-f) */ |
| 509 | function isLcHexDigit(c: string): boolean { |
| 510 | const code = c.charCodeAt(0); |
| 511 | return (code >= CHAR_CODE_0 && code <= CHAR_CODE_9) || |
| 512 | (code >= CHAR_CODE_LOWER_A && code <= 102); // 'f' = 102 |
| 513 | } |
| 514 | |
| 515 | /** RFC 9110 tchar: token characters */ |
| 516 | function isTchar(c: string): boolean { |
no outgoing calls
no test coverage detected