decord/source/13513_LookupMatcher.js

27 lines
807 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 13513
// Function ID: 13514
2026-07-20 16:05:17 +00:00
// Name: LookupMatcher
2026-08-08 06:10:11 +00:00
// Dependencies: [13514, 13517]
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 13513 (LookupMatcher)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.LookupMatcher = function LookupMatcher(arg0, arg1, arg2) {
const obj = { locale: "" };
let num = 0;
if (0 < arg1.length) {
2026-08-08 06:10:11 +00:00
const replaced = str.replace(require(13514) /* isMatched */.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
const BestAvailableLocaleResult = require(13517) /* BestAvailableLocale */.BestAvailableLocale(arg0, replaced);
2026-07-20 16:05:17 +00:00
while (!BestAvailableLocaleResult) {
num = num + 1;
}
obj.locale = BestAvailableLocaleResult;
if (arg1[num] !== replaced) {
obj.extension = str.slice(replaced.length, str.length);
}
return obj;
}
obj.locale = arg2();
return obj;
};