69 references to UriHelper
System.Private.Uri (69)
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\IPv6AddressHelper.cs (1)
181
if (name[i] != '%' && !
UriHelper
.Unreserved.Contains(name[i]))
System\IriHelper.cs (3)
94
ch =
UriHelper
.DecodeHexChars(pInput[i + 1], pInput[i + 2]);
97
if (ch == Uri.c_DummyChar ||
UriHelper
.IsNotSafeForUnescape(ch))
174
UriHelper
.PercentEncodeByte(b, ref dest);
System\PercentEncodingHelper.cs (2)
18
Debug.Assert(
UriHelper
.DecodeHexChars(input[1], input[2]) != Uri.c_DummyChar);
19
Debug.Assert(
UriHelper
.DecodeHexChars(input[1], input[2]) >= 128);
System\Uri.cs (42)
1072
UriHelper
.Unescape(path, ref result);
1456
char ret =
UriHelper
.DecodeHexChars(pattern[index + 1], pattern[index + 2]);
1931
UriHelper
.EscapeString(rawString, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2022
if (length > idx &&
UriHelper
.IsLWS(pUriString[length - 1]))
2025
while (length != idx &&
UriHelper
.IsLWS(pUriString[--length]))
2257
while (
UriHelper
.IsLWS(_string[idx]))
2502
host =
UriHelper
.EscapeString(host, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2831
UriHelper
.EscapeString(slice, ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2841
UriHelper
.UnescapeString(slice[..^1],
2849
UriHelper
.Unescape(slice, ref dest);
2881
host =
UriHelper
.StripBidiControlCharacters(host, host);
2897
UriHelper
.Unescape(hostSlice, ref dest);
2901
UriHelper
.UnescapeString(hostSlice,
2992
UriHelper
.EscapeString(slice, ref dest, checkExistingEscaped: true, isQuery ?
UriHelper
.UnreservedReservedExceptHash :
UriHelper
.UnreservedReserved);
3001
UriHelper
.Unescape(slice, ref dest);
3012
UriHelper
.UnescapeString(slice,
3196
while (local > idx &&
UriHelper
.IsLWS(str[local - 1])) --local;
3623
while ((uint)i < (uint)uriString.Length &&
UriHelper
.IsLWS(uriString[i]))
3773
return UriParser.FindOrFetchAsUnknownV1Syntax(
UriHelper
.SpanToLowerInvariantString(scheme));
4022
newHost =
UriHelper
.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput));
4066
newHost =
UriHelper
.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost));
4099
if (
UriHelper
.StripBidiControlCharacters(host, out string? stripped))
4106
newHost =
UriHelper
.NormalizeAndConcat(newHost, host);
4262
if (i + 2 < end && (c =
UriHelper
.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar)
4348
UriHelper
.EscapeString(
4350
ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4367
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
4421
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4438
UriHelper
.Unescape(slice, ref dest);
4465
UriHelper
.UnescapeString(copy.AsSpan(),
4487
char decoded =
UriHelper
.DecodeHexChars(chars[i + 1], chars[i + 2]);
4508
dest.Length = start +
UriHelper
.Compress(
4516
destLength = start +
UriHelper
.Compress(
4884
UriHelper
.EscapeString(str, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
System\UriExt.cs (18)
241
char value =
UriHelper
.DecodeHexChars(data[i + 1], data[i + 2]);
243
if (!char.IsAscii(value) ||
UriHelper
.Unreserved.Contains(value))
604
UriHelper
.Unescape(charsToUnescape.Slice(indexOfFirstToUnescape), ref vsb);
650
UriHelper
.Unescape(charsToUnescape.Slice(indexOfFirstToUnescape), ref vsb);
684
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.UnreservedReserved);
693
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved);
699
UriHelper
.EscapeString(charsToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved, backingString: null);
707
UriHelper
.TryEscapeDataString(charsToEscape, destination, out charsWritten);
820
if (relativeStr.Length > 0 && (
UriHelper
.IsLWS(relativeStr[0]) ||
UriHelper
.IsLWS(relativeStr[relativeStr.Length - 1])))
821
relativeStr = relativeStr.Trim(
UriHelper
.s_WSchars);
885
return
UriHelper
.EscapeString(_string, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
897
UriHelper
.UnescapeString(_string, ref vsb, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.EscapeUnescape, null, false);
1022
return
UriHelper
.TestForSubPath(self, other, IsUncOrDosPath || uriLink.IsUncOrDosPath);