49 writes to _flags
System.Private.Uri (49)
System\Uri.cs (33)
146
_flags
|= Flags.Debug_LeftConstructor;
260
Interlocked.Or(ref
_flags
, flags);
268
_flags
|= flags;
583
_flags
= Flags.Zero;
629
_flags
= Flags.Zero;
1982
_flags
|= Flags.ErrorOrParsingRecursion;
2004
_flags
&= ~(Flags.IndexMask | Flags.UserDrivenParsing);
2017
_flags
|= Flags.BasicHostType;
2018
_flags
|= (Flags)idx;
2048
_flags
|= Flags.AuthorityFound;
2063
_flags
|= Flags.DosPath;
2068
_flags
|= Flags.AuthorityFound;
2088
_flags
|= Flags.UncPath;
2094
_flags
|= Flags.UnixPath | Flags.AuthorityFound;
2115
_flags
|= Flags.AuthorityFound;
2126
_flags
|= Flags.AuthorityFound;
2139
_flags
|= ((Flags)idx | Flags.UnknownHostType);
2157
_flags
|= ((Flags)idx | Flags.UnknownHostType);
2166
_flags
|= (((_flags & Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType);
2167
_flags
|= (Flags)idx;
2181
idx = CheckAuthorityHelper(str, idx, out ParsingError err, ref
_flags
, _syntax.Flags, ref newHost);
2208
_flags
|= (Flags)idx;
2399
Flags oldValue = Interlocked.CompareExchange(ref
_flags
, (current & ~Flags.IndexMask) | cF, current);
2422
_flags
|= Flags.ErrorOrParsingRecursion;
2425
_flags
&= ~Flags.ErrorOrParsingRecursion;
2582
_flags
= (_flags & ~Flags.HostTypeMask) | Flags.BasicHostType;
2592
_flags
|= (Flags.HostNotCanonical | Flags.E_HostNotCanonical);
2596
_flags
= (_flags & ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask);
2607
_flags
&= ~Flags.NotDefaultPort;
2608
_flags
|= (Flags.PortNotCanonical | Flags.E_PortNotCanonical);
2622
_flags
&= ~Flags.NotDefaultPort;
2624
_flags
|= Flags.NotDefaultPort;
2626
_flags
|= (Flags.PortNotCanonical | Flags.E_PortNotCanonical);
System\UriExt.cs (14)
34
_flags
|= Flags.UserEscaped;
37
_flags
|= Flags.DisablePathAndQueryCanonicalization;
39
ParsingError err = ParseScheme(_string, ref
_flags
, ref _syntax!);
55
_flags
|= Flags.HasUnicode;
66
_flags
&= Flags.UserEscaped | Flags.HasUnicode; // the only flags that makes sense for a relative uri
87
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
100
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
114
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
133
_flags
|= Flags.UserDrivenParsing;
147
_flags
= Flags.UserDrivenParsing | (_flags & Flags.UserEscaped);
646
_flags
= flags;
957
_flags
= otherUri._flags;
974
_flags
&= ~(Flags.MinimalUriInfoSet | Flags.AllUriInfoSet | Flags.IndexMask);
991
_flags
|= (Flags)portIndex; // Port or path
System\UriScheme.cs (1)
80
Uri.Flags previous = Interlocked.Or(ref uri.
_flags
, Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
System\UriSyntax.cs (1)
272
Interlocked.Or(ref thisUri.
_flags
, Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
48 references to _flags
System.Private.Uri (48)
System\Uri.cs (41)
201
Debug.Assert((
_flags
& Flags.Debug_LeftConstructor) == 0);
275
get { return (
_flags
& Flags.ImplicitFile) != 0; }
280
get { return (
_flags
& (Flags.UncPath | Flags.DosPath)) != 0; }
285
get { return (
_flags
& Flags.DosPath) != 0; }
290
get { return (
_flags
& Flags.UncPath) != 0; }
295
get { return (
_flags
& Flags.UnixPath) != 0; }
300
get { return
_flags
& Flags.HostTypeMask; }
326
internal bool DisablePathAndQueryCanonicalization => (
_flags
& Flags.DisablePathAndQueryCanonicalization) != 0;
332
return (
_flags
& Flags.UserDrivenParsing) != 0;
353
return (
_flags
& flags) == 0;
358
return (
_flags
& flags) != 0;
374
Flags cF =
_flags
;
380
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
386
if ((
_flags
& Flags.AllUriInfoSet) == 0)
1641
ushort nonCanonical = (ushort)((ushort)
_flags
& (ushort)Flags.CannotDisplayCanonical);
1642
if (((
_flags
& (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0) ||
1974
Debug.Assert((
_flags
& Flags.CustomParser_ParseMinimalAlreadyCalled) != 0);
2001
int idx = (int)(
_flags
& Flags.IndexMask);
2101
if ((
_flags
& (Flags.UncPath | Flags.DosPath | Flags.UnixPath)) != 0)
2166
_flags |= (((
_flags
& Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType);
2396
Flags current =
_flags
;
2431
Flags flags =
_flags
;
2575
Flags flags =
_flags
& ~Flags.HostTypeMask;
2582
_flags = (
_flags
& ~Flags.HostTypeMask) | Flags.BasicHostType;
2596
_flags = (
_flags
& ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask);
2644
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
2649
ushort nonCanonical = unchecked((ushort)(((ushort)
_flags
& ((ushort)Flags.CannotDisplayCanonical << 7)) >> 6));
2683
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
2688
ushort nonCanonical = unchecked((ushort)((ushort)
_flags
& (ushort)Flags.CannotDisplayCanonical));
2693
if ((
_flags
& (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0)
3209
if ((
_flags
& Flags.AuthorityFound) != 0 && !str.Slice(schemeLength).StartsWith("://", StringComparison.Ordinal))
3216
if ((
_flags
& Flags.HasUserInfo) != 0)
3369
if (((
_flags
& Flags.AuthorityFound) != 0) && ((syntaxFlags & UriSyntaxFlags.PathIsRooted) != 0)
3379
if (IsDosPath || (((
_flags
& Flags.AuthorityFound) != 0) &&
3417
if (((
_flags
& Flags.ImplicitFile) == 0) || ((
_flags
& Flags.UserEscaped) != 0) ||
3426
if (((
_flags
& Flags.ImplicitFile) != 0) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0)
3730
Debug.Assert((
_flags
& Flags.Debug_LeftConstructor) == 0 || (!_syntax.IsSimple && Monitor.IsEntered(_info)));
3731
Debug.Assert((
_flags
& Flags.HasUserInfo) == 0 && (
_flags
& Flags.HostTypeMask) == 0);
4187
if ((
_flags
& Flags.HasUnicode) != 0)
System\UriExt.cs (7)
31
Debug.Assert(_originalUnicodeString is null && _info is null && _syntax is null &&
_flags
== Flags.Zero);
147
_flags = Flags.UserDrivenParsing | (
_flags
& Flags.UserEscaped);
406
Flags nonCanonical = (
_flags
& (Flags.E_CannotDisplayCanonical | Flags.IriCanonical));
477
if ((
_flags
& Flags.CanonicalDnsHost) == 0 && HostType != Flags.IPv6HostType)
858
if (((
_flags
& Flags.NotDefaultPort) != 0) || (uriComponents == UriComponents.StrongPort
875
|| ((
_flags
& (Flags.HostNotCanonical | Flags.E_HostNotCanonical)) == 0)))
957
_flags = otherUri.
_flags
;