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

◆ SubstringBefore()

static string System.Xml.Xsl.Runtime.XsltFunctions.SubstringBefore ( string s1,
string s2 )
inlinestatic

Definition at line 29 of file XsltFunctions.cs.

30 {
31 if (s2.Length == 0)
32 {
33 return s2;
34 }
35 int num = s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal);
36 if (num >= 1)
37 {
38 return s1.Substring(0, num);
39 }
40 return string.Empty;
41 }
static readonly CompareInfo s_compareInfo

References System.Xml.Dictionary, and System.Xml.Xsl.Runtime.XsltFunctions.s_compareInfo.