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

◆ AddDateWordOrPostfix()

void System.Globalization.DateTimeFormatInfoScanner.AddDateWordOrPostfix ( string formatPostfix,
string str )
inlinepackage

Definition at line 48 of file DateTimeFormatInfoScanner.cs.

49 {
50 if (str.Length == 0)
51 {
52 return;
53 }
54 if (str.Length == 1)
55 {
56 switch (str[0])
57 {
58 case '.':
60 return;
61 case '-':
62 case '/':
63 case '分':
64 case '年':
65 case '日':
66 case '时':
67 case '時':
68 case '月':
69 case '秒':
70 case '년':
71 case '분':
72 case '시':
73 case '월':
74 case '일':
75 case '초':
76 return;
77 }
78 }
79 if (m_dateWords == null)
80 {
82 }
83 if (formatPostfix == "MMMM")
84 {
85 string item = "\ue000" + str;
87 {
89 }
90 return;
91 }
93 {
95 }
96 if (str[^1] == '.')
97 {
98 string item2 = str[0..^1];
100 {
102 }
103 }
104 }

References System.Collections.Generic.List< T >.Add(), System.Globalization.DateTimeFormatInfoScanner.AddIgnorableSymbols(), System.Collections.Generic.List< T >.Contains(), System.item, System.Globalization.DateTimeFormatInfoScanner.m_dateWords, and System.str.

Referenced by System.Globalization.DateTimeFormatInfoScanner.AddDateWords().