71 references to UriHelper
System.Private.Uri (71)
System\DomainNameHelper.cs (3)
88return UriHelper.SpanToLowerInvariantString(span); 201string bidiStrippedHost = UriHelper.StripBidiControlCharacters(hostname, hostname); 220Debug.Assert(ReferenceEquals(hostname, UriHelper.StripBidiControlCharacters(hostname, hostname)));
System\IriHelper.cs (5)
79return component == 0 && UriHelper.IsGenDelim(ch); 82return UriHelper.RFC3986ReservedMarks.Contains(ch); 107ch = UriHelper.DecodeHexChars(pInput[i + 1], pInput[i + 2]); 110if (ch == Uri.c_DummyChar || ch == '%' || CheckIsReserved(ch, component) || UriHelper.IsNotSafeForUnescape(ch)) 189UriHelper.PercentEncodeByte(b, ref dest);
System\PercentEncodingHelper.cs (2)
20Debug.Assert(UriHelper.DecodeHexChars(input[1], input[2]) != Uri.c_DummyChar); 21Debug.Assert(UriHelper.DecodeHexChars(input[1], input[2]) >= 128);
System\Uri.cs (43)
1055UriHelper.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar, 1073UriHelper.UnescapeString(_string, start, _info.Offset.Query, result, ref count, c_DummyChar, 1246UriHelper.UnescapeString(host, 0, host.Length, ref dest, 1472char ret = UriHelper.DecodeHexChars(pattern[index + 1], pattern[index + 2]); 1947UriHelper.EscapeString(rawString, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2038if (length > idx && UriHelper.IsLWS(pUriString[length - 1])) 2041while (length != idx && UriHelper.IsLWS(pUriString[--length])) 2273while (UriHelper.IsLWS(_string[idx])) 2518host = UriHelper.EscapeString(host, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2847UriHelper.EscapeString(slice, ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2857UriHelper.UnescapeString(slice[..^1], 2865UriHelper.UnescapeString(slice, 2914host = UriHelper.StripBidiControlCharacters(host, host); 2923UriHelper.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(), 2989UriHelper.EscapeString( 2991ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptHash); 3007UriHelper.UnescapeString(str, offset, _info.Offset.Fragment, 3028UriHelper.EscapeString( 3030ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 3046UriHelper.UnescapeString(str, offset, _info.Offset.End, 3231while (local > idx && UriHelper.IsLWS(str[local - 1])) --local; 3658while ((uint)i < (uint)uriString.Length && UriHelper.IsLWS(uriString[i])) 3808return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 4046newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput)); 4090newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost)); 4123if (UriHelper.StripBidiControlCharacters(host, out string? stripped)) 4130newHost = UriHelper.NormalizeAndConcat(newHost, host); 4286if (i + 2 < end && (c = UriHelper.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar) 4378UriHelper.EscapeString( 4380ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4397UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 4456UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4498UriHelper.UnescapeString(pCopy, 0, copy.Length, 4528char ch = UriHelper.DecodeHexChars(*pch++, *pch++); 4540ch = UriHelper.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++)); 5064dest = UriHelper.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar, 5072UriHelper.EscapeString(str, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash);
System\UriExt.cs (18)
242char value = UriHelper.DecodeHexChars(data[i + 1], data[i + 2]); 244if (!char.IsAscii(value) || UriHelper.Unreserved.Contains(value)) 605UriHelper.UnescapeString( 655UriHelper.UnescapeString( 693UriHelper.EscapeString(stringToEscape, checkExistingEscaped: false, UriHelper.UnreservedReserved); 702UriHelper.EscapeString(stringToEscape, checkExistingEscaped: false, UriHelper.Unreserved); 708UriHelper.EscapeString(charsToEscape, checkExistingEscaped: false, UriHelper.Unreserved, backingString: null); 716UriHelper.TryEscapeDataString(charsToEscape, destination, out charsWritten); 829if (relativeStr.Length > 0 && (UriHelper.IsLWS(relativeStr[0]) || UriHelper.IsLWS(relativeStr[relativeStr.Length - 1]))) 830relativeStr = relativeStr.Trim(UriHelper.s_WSchars); 894return UriHelper.EscapeString(_string, checkExistingEscaped: true, UriHelper.UnreservedReserved); 906UriHelper.UnescapeString(_string, ref vsb, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.EscapeUnescape, null, false); 1037return UriHelper.TestForSubPath(selfPtr, self.Length, otherPtr, other.Length,