decord/source/13050_LookupMatcher.js
2026-07-21 06:55:02 +00:00

24 lines
701 B
JavaScript

// Module ID: 13050
// Function ID: 99298
// Name: LookupMatcher
// Dependencies: []
// Module 13050 (LookupMatcher)
arg5.LookupMatcher = function LookupMatcher(arg0, arg1, arg2) {
const obj = { locale: "" };
let num = 0;
if (0 < arg1.length) {
const replaced = str.replace(arg1(arg6[0]).UNICODE_EXTENSION_SEQUENCE_REGEX, "");
const BestAvailableLocaleResult = arg1(arg6[1]).BestAvailableLocale(arg0, replaced);
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;
};