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

◆ SkipWhiteSpacesAndNonLetter()

static int System.Globalization.DateTimeFormatInfoScanner.SkipWhiteSpacesAndNonLetter ( string pattern,
int currentIndex )
inlinestaticpackage

Definition at line 21 of file DateTimeFormatInfoScanner.cs.

22 {
23 while (currentIndex < pattern.Length)
24 {
25 char c = pattern[currentIndex];
26 if (c == '\\')
27 {
28 currentIndex++;
29 if (currentIndex >= pattern.Length)
30 {
31 break;
32 }
33 c = pattern[currentIndex];
34 if (c == '\'')
35 {
36 continue;
37 }
38 }
39 if (char.IsLetter(c) || c == '\'' || c == '.')
40 {
41 break;
42 }
43 currentIndex++;
44 }
45 return currentIndex;
46 }

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