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

◆ GetSeparator()

static string System.Globalization.CultureData.GetSeparator ( string format,
string timeParts )
inlinestaticprivate

Definition at line 1646 of file CultureData.cs.

1647 {
1648 int num = IndexOfTimePart(format, 0, timeParts);
1649 if (num != -1)
1650 {
1651 char c = format[num];
1652 do
1653 {
1654 num++;
1655 }
1656 while (num < format.Length && format[num] == c);
1657 int num2 = num;
1658 if (num2 < format.Length)
1659 {
1661 if (num3 != -1)
1662 {
1663 return UnescapeNlsString(format, num2, num3 - 1);
1664 }
1665 }
1666 }
1667 return string.Empty;
1668 }
static string UnescapeNlsString(string str, int start, int end)
static int IndexOfTimePart(string format, int startIndex, string timeParts)

References System.format, System.Globalization.CultureData.IndexOfTimePart(), and System.Globalization.CultureData.UnescapeNlsString().

Referenced by System.Globalization.CultureData.GetDateSeparator(), and System.Globalization.CultureData.GetTimeSeparator().