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

◆ TryParseValue()

override bool System.Net.Http.Headers.UriHeaderParser.TryParseValue ( [NotNullWhen(true)] string value,
object storeValue,
ref int index,
[NotNullWhen(true)] out object parsedValue )
inline

Definition at line 18 of file UriHeaderParser.cs.

19 {
20 parsedValue = null;
21 if (string.IsNullOrEmpty(value) || index == value.Length)
22 {
23 return false;
24 }
25 string text = value;
26 if (index > 0)
27 {
28 text = value.Substring(index);
29 }
30 if (!Uri.TryCreate(text, _uriKind, out Uri result))
31 {
33 if (!Uri.TryCreate(text, _uriKind, out result))
34 {
35 return false;
36 }
37 }
38 index = value.Length;
39 parsedValue = result;
40 return true;
41 }
static string DecodeUtf8FromString(string input)

References System.Net.Http.Headers.UriHeaderParser._uriKind, System.Net.Http.Headers.UriHeaderParser.DecodeUtf8FromString(), System.index, System.text, System.Uri.TryCreate(), and System.value.