"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_primordials_number = require('../primordials/number.js');

//#region src/regexps/hex.ts
/**
* @file Hex-encoding helpers — fixed-width `\xHH` (`hex2`) and `\uHHHH`
*   (`hex4`) producers used by the spec-compliant `RegExp.escape` fallback to
*   emit canonical escape sequences.
*/
function hex2(n) {
	return require_primordials_number.NumberPrototypeToString(n, 16).padStart(2, "0");
}
function hex4(n) {
	return require_primordials_number.NumberPrototypeToString(n, 16).padStart(4, "0");
}

//#endregion
exports.hex2 = hex2;
exports.hex4 = hex4;