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