Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsFunctionAvailable()

static bool System.Xml.Xsl.Xslt.QilGenerator.IsFunctionAvailable ( string localName,
string nsUri )
inlinestatic

Definition at line 2416 of file QilGenerator.cs.

2417 {
2418 if (XPathBuilder.IsFunctionAvailable(localName, nsUri))
2419 {
2420 return true;
2421 }
2422 if (nsUri.Length == 0)
2423 {
2424 if (FunctionTable.ContainsKey(localName))
2425 {
2426 return localName != "unparsed-entity-uri";
2427 }
2428 return false;
2429 }
2430 if (nsUri == "urn:schemas-microsoft-com:xslt")
2431 {
2432 switch (localName)
2433 {
2434 default:
2435 return localName == "utc";
2436 case "node-set":
2437 case "format-date":
2438 case "format-time":
2439 case "local-name":
2440 case "namespace-uri":
2441 case "number":
2442 case "string-compare":
2443 return true;
2444 }
2445 }
2446 if (nsUri == "http://exslt.org/common")
2447 {
2448 if (!(localName == "node-set"))
2449 {
2450 return localName == "object-type";
2451 }
2452 return true;
2453 }
2454 return false;
2455 }
static bool IsFunctionAvailable(string localName, string nsUri)
static Dictionary< string, XPathBuilder.FunctionInfo< FuncId > > FunctionTable

References System.Xml.Xsl.Xslt.QilGenerator.FunctionTable, and System.Xml.Xsl.XPath.XPathBuilder.IsFunctionAvailable().

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileFunctionAvailable(), and System.Xml.Xsl.Runtime.XsltLibrary.FunctionAvailableHelper().