Urara-Blog/node_modules/.pnpm-store/v3/files/a3/891583387df2f9fd6aaaadb8e2e18143a0214088f9585522ee3a02adabaea4084be63ad41b832c11cfda295669009717f20de9b7aafa1791da89a64ceb38fa
2022-08-14 01:14:53 +08:00

24 lines
453 B
Text

"use strict";
function isASCIIDigit(c) {
return c >= 0x30 && c <= 0x39;
}
function isASCIIAlpha(c) {
return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
}
function isASCIIAlphanumeric(c) {
return isASCIIAlpha(c) || isASCIIDigit(c);
}
function isASCIIHex(c) {
return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
}
module.exports = {
isASCIIDigit,
isASCIIAlpha,
isASCIIAlphanumeric,
isASCIIHex
};