![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/lavocat.quebec/private_html/node_modules/es-abstract/2024/ |
'use strict';
var $TypeError = require('es-errors/type');
var HasEitherUnicodeFlag = require('./HasEitherUnicodeFlag');
var isRegExpRecord = require('../helpers/records/regexp-record');
var CharSet = require('../helpers/CharSet');
// https://262.ecma-international.org/15.0/#sec-allcharacters
module.exports = function AllCharacters(rer) {
if (!isRegExpRecord(rer)) {
throw new $TypeError('Assertion failed: `rer` must be a RegExp Record');
}
if (rer['[[UnicodeSets]]'] && rer['[[IgnoreCase]]']) { // step 1
// 1. Return the CharSet containing all Unicode code points _c_ that do not have a <a href="https://www.unicode.org/reports/tr44/#Simple_Case_Folding">Simple Case Folding</a> mapping (that is, scf(_c_)=_c_).
return CharSet.getNonSimpleCaseFoldingCodePoints(); // step 1.a
} else if (HasEitherUnicodeFlag(rer)) { // step 2
// 1. Return the CharSet containing all code point values.
return CharSet.getCodePoints(); // step 3.a
// eslint-disable-next-line no-else-return
} else { // step 3
// 1. Return the CharSet containing all code unit values.
return CharSet.getCodeUnits(); // step 3.a
}
};