MCPcopy Create free account
hub / github.com/Effect-TS/effect / hexAt

Function hexAt

packages/sql/pg/src/PgTypes.ts:859–862  ·  view source on GitHub ↗
(text: string, at: number)

Source from the content-addressed store, hash-verified

857
858/** The hex digit at `at`, or `-1` when that character is not one. */
859const hexAt = (text: string, at: number): number => {
860 const code = text.charCodeAt(at)
861 return code < 128 ? hexValues[code] : -1
862}
863
864/**
865 * The hyphen positions do the validating that a regular expression used to:

Callers 1

uuidWordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected