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

◆ GetUnescapedParts()

string System.Uri.GetUnescapedParts ( UriComponents uriParts,
UriFormat formatAs )
inlineprivate

Definition at line 1862 of file Uri.cs.

1863 {
1864 ushort num = (ushort)((ushort)_flags & 0x7Fu);
1865 if ((uriParts & UriComponents.Path) != 0)
1866 {
1867 if ((_flags & (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != Flags.Zero)
1868 {
1869 num = (ushort)(num | 0x10u);
1870 }
1871 else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')
1872 {
1873 num = (ushort)(num | 0x10u);
1874 }
1875 }
1876 if (((ushort)uriParts & num) == 0)
1877 {
1879 if (uriPartsFromUserString != null)
1880 {
1882 }
1883 }
1884 return ReCreateParts(uriParts, num, formatAs);
1885 }
Offset Offset
Definition Uri.cs:81
string GetUriPartsFromUserString(UriComponents uriParts)
Definition Uri.cs:2069
int SecuredPathIndex
Definition Uri.cs:222
Flags _flags
Definition Uri.cs:195
bool IsDosPath
Definition Uri.cs:205
string ReCreateParts(UriComponents parts, ushort nonCanonical, UriFormat formatAs)
Definition Uri.cs:1887
string _string
Definition Uri.cs:189
UriInfo _info
Definition Uri.cs:197
ushort Path
Definition Uri.cs:119

References System.Uri._flags, System.Uri._info, System.Uri._string, System.Runtime.Serialization.Dictionary, System.Uri.GetUriPartsFromUserString(), System.Uri.IsDosPath, System.Uri.UriInfo.Offset, System.Uri.Offset.Path, System.Uri.ReCreateParts(), and System.Uri.SecuredPathIndex.

Referenced by System.Uri.GetComponentsHelper(), and System.Uri.GetLocalPath().