68 references to UriHelper
System.Private.Uri (68)
System\DomainNameHelper.cs (3)
88
return
UriHelper
.SpanToLowerInvariantString(span);
201
string bidiStrippedHost =
UriHelper
.StripBidiControlCharacters(hostname, hostname);
220
Debug.Assert(ReferenceEquals(hostname,
UriHelper
.StripBidiControlCharacters(hostname, hostname)));
System\IriHelper.cs (5)
79
return component == 0 &&
UriHelper
.IsGenDelim(ch);
82
return
UriHelper
.RFC3986ReservedMarks.Contains(ch);
105
ch =
UriHelper
.DecodeHexChars(pInput[i + 1], pInput[i + 2]);
108
if (ch == Uri.c_DummyChar || ch == '%' || CheckIsReserved(ch, component) ||
UriHelper
.IsNotSafeForUnescape(ch))
187
UriHelper
.PercentEncodeByte(b, ref dest);
System\PercentEncodingHelper.cs (2)
20
Debug.Assert(
UriHelper
.DecodeHexChars(input[1], input[2]) != Uri.c_DummyChar);
21
Debug.Assert(
UriHelper
.DecodeHexChars(input[1], input[2]) >= 128);
System\Uri.cs (40)
1008
UriHelper
.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar,
1026
UriHelper
.UnescapeString(_string, start, _info.Offset.Query, result, ref count, c_DummyChar,
1199
UriHelper
.UnescapeString(host, 0, host.Length, ref dest,
1425
char ret =
UriHelper
.DecodeHexChars(pattern[index + 1], pattern[index + 2]);
1900
UriHelper
.EscapeString(rawString, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
1994
if (length > idx &&
UriHelper
.IsLWS(pUriString[length - 1]))
1997
while (length != idx &&
UriHelper
.IsLWS(pUriString[--length]))
2229
while (
UriHelper
.IsLWS(_string[idx]))
2474
host =
UriHelper
.EscapeString(host, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2799
UriHelper
.EscapeString(slice, ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2809
UriHelper
.UnescapeString(slice[..^1],
2817
UriHelper
.UnescapeString(slice,
2866
host =
UriHelper
.StripBidiControlCharacters(host, host);
2875
UriHelper
.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(),
2941
UriHelper
.EscapeString(
2943
ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptHash);
2959
UriHelper
.UnescapeString(str, offset, _info.Offset.Fragment,
2980
UriHelper
.EscapeString(
2982
ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
2998
UriHelper
.UnescapeString(str, offset, _info.Offset.End,
3183
while (local > idx &&
UriHelper
.IsLWS(str[local - 1])) --local;
3624
while ((uint)i < (uint)uriString.Length &&
UriHelper
.IsLWS(uriString[i]))
3774
return UriParser.FindOrFetchAsUnknownV1Syntax(
UriHelper
.SpanToLowerInvariantString(scheme));
4094
string temp =
UriHelper
.StripBidiControlCharacters(new ReadOnlySpan<char>(pString + start, end - start));
4253
if (i + 2 < end && (c =
UriHelper
.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar)
4345
UriHelper
.EscapeString(
4347
ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4364
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
4423
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4465
UriHelper
.UnescapeString(pCopy, 0, copy.Length,
4495
char ch =
UriHelper
.DecodeHexChars(*pch++, *pch++);
4507
ch =
UriHelper
.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++));
5031
dest =
UriHelper
.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar,
5039
UriHelper
.EscapeString(str, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
System\UriExt.cs (18)
246
char value =
UriHelper
.DecodeHexChars(data[i + 1], data[i + 2]);
248
if (!char.IsAscii(value) ||
UriHelper
.Unreserved.Contains(value))
609
UriHelper
.UnescapeString(
659
UriHelper
.UnescapeString(
697
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.UnreservedReserved);
706
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved);
712
UriHelper
.EscapeString(charsToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved, backingString: null);
720
UriHelper
.TryEscapeDataString(charsToEscape, destination, out charsWritten);
833
if (relativeStr.Length > 0 && (
UriHelper
.IsLWS(relativeStr[0]) ||
UriHelper
.IsLWS(relativeStr[relativeStr.Length - 1])))
834
relativeStr = relativeStr.Trim(
UriHelper
.s_WSchars);
898
return
UriHelper
.EscapeString(_string, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
910
UriHelper
.UnescapeString(_string, ref vsb, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.EscapeUnescape, null, false);
1041
return
UriHelper
.TestForSubPath(selfPtr, self.Length, otherPtr, other.Length,