[Webkit-unassigned] [Bug 262140] Fix SVG systemLanguage conditional processing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 26 14:59:15 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=262140
--- Comment #2 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
static bool isLangTagPrefix(const String& langTag, const String& language)
{
if (!langTag.startsWithIgnoringASCIICase(language))
return false;
return langTag.length() == language.length() || langTag[language.length()] == '-';
}
static bool matchLanguageList(const String& langTag, const Vector<String>& languages)
{
for (const auto& value : languages) {
if (isLangTagPrefix(langTag, value))
return true;
}
return false;
}
and following changes here: "SVGTests::isValid()"
for (auto& langTag : attributes->systemLanguage().items()) {
if (matchLanguageList(langTag, genericDefaultLanguage))
return false;
}
___
It leads to following compile errors:
candidate function not viable: no known conversion from 'StringView' to 'const Vector<String>'
for 2nd argument
and
no matching function for call to 'matchLanguageList'
___
Still looking into it but if someone want to take it. Go ahead and run with it. Might not come back soon but good to share what tried to make it easier for others.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230926/e20bfb6c/attachment.htm>
More information about the webkit-unassigned
mailing list