var hexadecimalRegex = /[\dA-Fa-f]/;
function toHexadecimal(t, n, r) {
	let i = "&#x" + t.toString(16).toUpperCase();
	return r && n && !hexadecimalRegex.test(String.fromCharCode(n)) ? i : i + ";";
}
export { toHexadecimal };
