MCPcopy Create free account
hub / github.com/denoland/std / isLcHexDigit

Function isLcHexDigit

http/unstable_structured_fields.ts:509–513  ·  view source on GitHub ↗

Check if character is a lowercase hex digit (0-9, a-f)

(c: string)

Source from the content-addressed store, hash-verified

507
508/** Check if character is a lowercase hex digit (0-9, a-f) */
509function 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 */
516function isTchar(c: string): boolean {

Callers 1

parseDisplayStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected