Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DotAtomReader.cs
Go to the documentation of this file.
2
3namespace System.Net.Mail;
4
5internal static class DotAtomReader
6{
7 internal static bool TryReadReverse(string data, int index, out int outIndex, bool throwExceptionIfFail)
8 {
9 int num = index;
10 while (0 <= index && (data[index] > '\u007f' || data[index] == '.' || MailBnfHelper.Atext[(uint)data[index]]))
11 {
12 index--;
13 }
14 if (num == index)
15 {
16 if (throwExceptionIfFail)
17 {
19 }
20 outIndex = 0;
21 return false;
22 }
23 if (data[index + 1] == '.')
24 {
25 if (throwExceptionIfFail)
26 {
28 }
29 outIndex = 0;
30 return false;
31 }
32 outIndex = index;
33 return true;
34 }
35}
static bool TryReadReverse(string data, int index, out int outIndex, bool throwExceptionIfFail)
static readonly bool[] Atext
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string MailHeaderFieldInvalidCharacter
Definition SR.cs:140
Definition SR.cs:7