10 writes to m_Syntax
System (10)
net\System\URI.cs (2)
495
m_Syntax
= null;
544
m_Syntax
= null;
net\System\UriExt.cs (8)
45
ParsingError err = ParseScheme(m_String, ref m_Flags, ref
m_Syntax
);
70
m_Syntax
= null; //make it be relative Uri
83
m_Syntax
= null; //make it be relative Uri
129
m_Syntax
= null; // convert to relative uri
171
m_Syntax
= m_Syntax.InternalOnNewUri();
185
m_Syntax
= null; // convert it to relative
684
m_Syntax
= uriParser;
1022
m_Syntax
= otherUri.m_Syntax;
98 references to m_Syntax
System (98)
net\System\URI.cs (87)
196
return
m_Syntax
;
201
get {return (object)
m_Syntax
== null;}
223
get { return ((
m_Syntax
!= null) && ((
m_Syntax
.Flags & UriSyntaxFlags.AllowIdn) != 0) &&
254
if (
m_Syntax
.SchemeName.Length > 32)
740
if (
m_Syntax
== null){
798
if (
m_Syntax
.IsSimple)
828
if (
m_Syntax
.IsSimple)
847
return (object)
m_Syntax
.SchemeName == (object)UriSchemeFile;
1091
c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
, false);
1108
c_DummyChar, c_DummyChar, mode,
m_Syntax
, true);
1117
result = Compress(result, (ushort)(IsDosPath? pathStart + 2: pathStart), ref count,
m_Syntax
);
1149
if (
m_Syntax
.IsSimple)
1160
return
m_Syntax
.DefaultPort;
1218
return
m_Syntax
.SchemeName;
1287
c_DummyChar, UnescapeMode.Unescape | UnescapeMode.UnescapeAll,
m_Syntax
, false);
1316
return
m_Syntax
!= null;
1663
if (
m_Syntax
== null) {
2068
if (
m_Syntax
.IsAllSet(UriSyntaxFlags.AllowEmptyHost | UriSyntaxFlags.AllowDOSPath)
2081
if (
m_Syntax
.InFact(UriSyntaxFlags.FileLikeUri) || i-idx <= 3) {
2093
if (
m_Syntax
.InFact(UriSyntaxFlags.FileLikeUri))
2101
if (
m_Syntax
.InFact(UriSyntaxFlags.MustHaveAuthority)) {
2114
else if (
m_Syntax
.InFact(UriSyntaxFlags.FileLikeUri) && (i - idx >= 2 && i - idx != 3 &&
2140
if (
m_Syntax
.InFact(UriSyntaxFlags.MustHaveAuthority)) {
2155
else if (
m_Syntax
.InFact(UriSyntaxFlags.OptionalAuthority) && (InFact(Flags.AuthorityFound) ||
2161
else if (
m_Syntax
.NotAny(UriSyntaxFlags.MailToLikeUri)) {
2172
else if (
m_Syntax
.InFact(UriSyntaxFlags.MustHaveAuthority)) {
2176
else if (
m_Syntax
.NotAny(UriSyntaxFlags.MailToLikeUri)) {
2209
idx = CheckAuthorityHelper(pUriString, idx, (ushort)length, ref err, ref m_Flags,
m_Syntax
, ref newHost);
2215
m_Syntax
.NotAny(UriSyntaxFlags.AllowDOSPath)) {
2300
idx = (ushort)
m_Syntax
.SchemeName.Length;
2326
if (
m_Syntax
.DefaultPort != UriParser.NoDefaultPort)
2327
info.Offset.PortValue = (ushort)
m_Syntax
.DefaultPort;
2469
if (!
m_Syntax
.IsSimple)
2624
string host =
m_Syntax
.InternalGetComponents(this, UriComponents.Host, UriFormat.UriEscaped);
2638
if (CheckAuthorityHelper(pHost, 0, (ushort)host.Length, ref err, ref flags,
m_Syntax
, ref newHost) !=
2667
string portStr =
m_Syntax
.InternalGetComponents(this, UriComponents.StrongPort, UriFormat.UriEscaped);
2682
throw new UriFormatException(SR.GetString(SR.net_uri_PortOutOfRange,
m_Syntax
.GetType().FullName, portStr));
2686
if (port ==
m_Syntax
.DefaultPort)
2781
char[] chars = new char[stemp.Length + count +
m_Syntax
.SchemeName.Length + 3 + 1];
2786
m_Syntax
.SchemeName.CopyTo(0, chars, count,
m_Syntax
.SchemeName.Length);
2787
count +=
m_Syntax
.SchemeName.Length;
2821
UnescapeMode.EscapeUnescape,
m_Syntax
, false);
2828
UnescapeMode.Unescape | UnescapeMode.UnescapeAll,
m_Syntax
, false);
2833
ref count, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
,
2840
c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
, false);
2886
m_Syntax
, false);
2911
else if ((parts & UriComponents.StrongPort) != 0 &&
m_Syntax
.DefaultPort != UriParser.NoDefaultPort) {
2919
m_Syntax
.DefaultPort != UriParser.NoDefaultPort)) {
2972
ref count, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
,
2982
m_Syntax
, true);
2989
(UnescapeMode.Unescape | UnescapeMode.UnescapeAll),
m_Syntax
, true);
2996
UnescapeMode.Unescape : UnescapeMode.EscapeUnescape),
m_Syntax
, true);
3003
c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
, true);
3027
ref count, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
,
3037
m_Syntax
, false);
3043
UnescapeMode.Unescape | UnescapeMode.UnescapeAll,
m_Syntax
, false);
3050
UnescapeMode.Unescape : UnescapeMode.EscapeUnescape),
m_Syntax
, false);
3057
c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.CopyOnly,
m_Syntax
, false);
3087
if (InFact(Flags.NotDefaultPort) ||
m_Syntax
.DefaultPort == UriParser.NoDefaultPort)
3128
return
m_Syntax
.SchemeName;
3185
if (InFact(Flags.NotDefaultPort) ||
m_Syntax
.DefaultPort == UriParser.NoDefaultPort)
3255
UriSyntaxFlags syntaxFlags =
m_Syntax
.Flags; // perf
3275
ushort syntaxLength = (ushort)
m_Syntax
.SchemeName.Length;
3278
if (
m_Syntax
.SchemeName[i] != str[idx + i])
3339
m_String =
m_Syntax
.SchemeName + SchemeDelimiter;
3352
(
m_Syntax
.InFact(UriSyntaxFlags.MayHaveQuery) ? '?' :
m_Syntax
.InFact(UriSyntaxFlags.MayHaveFragment) ? '#' : c_EOL));
3384
? '?' :
m_Syntax
.InFact(UriSyntaxFlags.MayHaveFragment) ? '#' : c_EOL));
3409
m_Syntax
.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))))
3411
if (((result & Check.DotSlashEscaped) != 0) &&
m_Syntax
.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))
4440
else if (delim == '?' && c == '#' && (
m_Syntax
!= null &&
m_Syntax
.InFact(UriSyntaxFlags.MayHaveFragment)))
4491
else if (delim == '?' && c == '#' && (
m_Syntax
!= null &&
m_Syntax
.InFact(UriSyntaxFlags.MayHaveFragment))) {
4496
if (IsImplicitFile || (
m_Syntax
!= null && !
m_Syntax
.InFact(UriSyntaxFlags.MayHaveQuery)
4509
if (IsImplicitFile || (
m_Syntax
!= null && !
m_Syntax
.InFact(UriSyntaxFlags.MayHaveFragment))) {
4599
if (
m_Syntax
.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical)
4605
m_Syntax
.InFact(UriSyntaxFlags.ConvertPathSlashes) ? '\\' : c_DummyChar);
4640
if (
m_Syntax
.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical)
4646
m_Syntax
.InFact(UriSyntaxFlags.ConvertPathSlashes) ? '\\' : c_DummyChar);
4666
dest = Compress(dest, (ushort)(pos + dosPathIdx), ref end,
m_Syntax
);
4679
else if (
m_Syntax
.InFact(UriSyntaxFlags.ConvertPathSlashes) && InFact(Flags.BackslashInPath))
4722
m_Syntax
, false);
net\System\UriExt.cs (11)
110
m_iriParsing = (s_IriParsing && ((
m_Syntax
== null) ||
m_Syntax
.InFact(UriSyntaxFlags.AllowIriParsing)));
120
if (
m_Syntax
!= null)
122
if (
m_Syntax
.IsSimple)
171
m_Syntax =
m_Syntax
.InternalOnNewUri();
177
m_Syntax
.InternalValidate(this, out e);
526
idx = (ushort)(m_Info.Offset.Scheme +
m_Syntax
.SchemeName.Length + 2);
582
idx = (ushort)
m_Syntax
.SchemeName.Length;
871
return
m_Syntax
.SchemeName;
894
&&
m_Syntax
.DefaultPort != UriParser.NoDefaultPort))
1022
m_Syntax = otherUri.
m_Syntax
;