Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DotAtomReader.cs
Go to the documentation of this file.
1
using
System.Net.Mime
;
2
3
namespace
System.Net.Mail
;
4
5
internal
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
{
18
throw
new
FormatException
(
System
.
SR
.
Format
(
System
.
SR
.
MailHeaderFieldInvalidCharacter
, data[
index
]));
19
}
20
outIndex = 0;
21
return
false
;
22
}
23
if
(data[
index
+ 1] ==
'.'
)
24
{
25
if
(throwExceptionIfFail)
26
{
27
throw
new
FormatException
(
System
.
SR
.
Format
(
System
.
SR
.
MailHeaderFieldInvalidCharacter
,
'.'
));
28
}
29
outIndex = 0;
30
return
false
;
31
}
32
outIndex =
index
;
33
return
true
;
34
}
35
}
System.FormatException
Definition
FormatException.cs:9
System.Net.Mail.DotAtomReader.TryReadReverse
static bool TryReadReverse(string data, int index, out int outIndex, bool throwExceptionIfFail)
Definition
DotAtomReader.cs:7
System.Net.Mail.DotAtomReader
Definition
DotAtomReader.cs:6
System.Net.Mime.MailBnfHelper.Atext
static readonly bool[] Atext
Definition
MailBnfHelper.cs:7
System.Net.Mime.MailBnfHelper
Definition
MailBnfHelper.cs:6
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.MailHeaderFieldInvalidCharacter
static string MailHeaderFieldInvalidCharacter
Definition
SR.cs:140
System.SR
Definition
SR.cs:7
System.Net.Mail
Definition
AlternateView.cs:5
System.Net.Mime
Definition
Base64Encoder.cs:1
System.ExceptionArgument.index
@ index
System
Definition
BlockingCollection.cs:8
source
System.Net.Mail
System.Net.Mail
DotAtomReader.cs
Generated by
1.10.0