MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / supportURL

Method supportURL

Extension/Script/danmuscript.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115bool DanmuScript::supportURL(const QString &url)
116{
117 bool supported = false;
118 for(const QString &s : supportedURLsRe)
119 {
120 QRegularExpression re(s);
121 QRegularExpressionMatch match = re.match(url);
122 if(match.capturedLength(0) == url.length())
123 {
124 supported = true;
125 break;
126 }
127 }
128 return supported;
129}
130
131QString DanmuScript::callGetSources(const char *fname, const QVariant &param, bool passOption, QList<DanmuSource> &results)
132{

Callers 1

getURLInfoMethod · 0.80

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected