73 references to UriHelper
System.Private.Uri (73)
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);
107
ch =
UriHelper
.DecodeHexChars(pInput[i + 1], pInput[i + 2]);
110
if (ch == Uri.c_DummyChar || ch == '%' || CheckIsReserved(ch, component) ||
UriHelper
.IsNotSafeForUnescape(ch))
189
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 (45)
1058
UriHelper
.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar,
1076
UriHelper
.UnescapeString(_string, start, _info.Offset.Query, result, ref count, c_DummyChar,
1249
UriHelper
.UnescapeString(host, 0, host.Length, ref dest,
1475
char ret =
UriHelper
.DecodeHexChars(pattern[index + 1], pattern[index + 2]);
1950
UriHelper
.EscapeString(rawString, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2041
if (length > idx &&
UriHelper
.IsLWS(pUriString[length - 1]))
2044
while (length != idx &&
UriHelper
.IsLWS(pUriString[--length]))
2276
while (
UriHelper
.IsLWS(_string[idx]))
2521
host =
UriHelper
.EscapeString(host, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2850
UriHelper
.EscapeString(slice, ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
2860
UriHelper
.UnescapeString(slice[..^1],
2868
UriHelper
.UnescapeString(slice,
2917
host =
UriHelper
.StripBidiControlCharacters(host, host);
2926
UriHelper
.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(),
2992
UriHelper
.EscapeString(
2994
ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptHash);
3010
UriHelper
.UnescapeString(str, offset, _info.Offset.Fragment,
3031
UriHelper
.EscapeString(
3033
ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
3049
UriHelper
.UnescapeString(str, offset, _info.Offset.End,
3234
while (local > idx &&
UriHelper
.IsLWS(str[local - 1])) --local;
3661
while ((uint)i < (uint)uriString.Length &&
UriHelper
.IsLWS(uriString[i]))
3811
return UriParser.FindOrFetchAsUnknownV1Syntax(
UriHelper
.SpanToLowerInvariantString(scheme));
4049
newHost =
UriHelper
.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput));
4093
newHost =
UriHelper
.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost));
4126
if (
UriHelper
.StripBidiControlCharacters(host, out string? stripped))
4133
newHost =
UriHelper
.NormalizeAndConcat(newHost, host);
4289
if (i + 2 < end && (c =
UriHelper
.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar)
4381
UriHelper
.EscapeString(
4383
ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4400
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
4444
dest.Length = offset +
UriHelper
.Compress(
4463
UriHelper
.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
4505
UriHelper
.UnescapeString(pCopy, 0, copy.Length,
4535
char ch =
UriHelper
.DecodeHexChars(*pch++, *pch++);
4547
ch =
UriHelper
.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++));
4586
destLength = start +
UriHelper
.Compress(
4950
dest =
UriHelper
.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar,
4958
UriHelper
.EscapeString(str, checkExistingEscaped: true,
UriHelper
.UnreservedReservedExceptQuestionMarkHash);
System\UriExt.cs (18)
242
char value =
UriHelper
.DecodeHexChars(data[i + 1], data[i + 2]);
244
if (!char.IsAscii(value) ||
UriHelper
.Unreserved.Contains(value))
605
UriHelper
.UnescapeString(
655
UriHelper
.UnescapeString(
693
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.UnreservedReserved);
702
UriHelper
.EscapeString(stringToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved);
708
UriHelper
.EscapeString(charsToEscape, checkExistingEscaped: false,
UriHelper
.Unreserved, backingString: null);
716
UriHelper
.TryEscapeDataString(charsToEscape, destination, out charsWritten);
829
if (relativeStr.Length > 0 && (
UriHelper
.IsLWS(relativeStr[0]) ||
UriHelper
.IsLWS(relativeStr[relativeStr.Length - 1])))
830
relativeStr = relativeStr.Trim(
UriHelper
.s_WSchars);
894
return
UriHelper
.EscapeString(_string, checkExistingEscaped: true,
UriHelper
.UnreservedReserved);
906
UriHelper
.UnescapeString(_string, ref vsb, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.EscapeUnescape, null, false);
1037
return
UriHelper
.TestForSubPath(selfPtr, self.Length, otherPtr, other.Length,