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

◆ TryReadCfwsAndThrowIfIncomplete()

static bool System.Net.Mail.MailAddressParser.TryReadCfwsAndThrowIfIncomplete ( string data,
int index,
out int outIndex,
bool throwExceptionIfFail )
inlinestaticprivate

Definition at line 95 of file MailAddressParser.cs.

96 {
97 if (!WhitespaceReader.TryReadCfwsReverse(data, index, out index, throwExceptionIfFail))
98 {
99 outIndex = 0;
100 return false;
101 }
102 if (index < 0)
103 {
105 {
106 throw new FormatException(System.SR.MailAddressInvalidFormat);
107 }
108 outIndex = 0;
109 return false;
110 }
111 outIndex = index;
112 return true;
113 }
static string MailAddressInvalidFormat
Definition SR.cs:148
Definition SR.cs:7

References System.index, System.SR.MailAddressInvalidFormat, and System.Net.Mail.WhitespaceReader.TryReadCfwsReverse().

Referenced by System.Net.Mail.MailAddressParser.TryParseAddress(), System.Net.Mail.MailAddressParser.TryParseDomain(), and System.Net.Mail.MailAddressParser.TryParseLocalPart().