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); 105ch = UriHelper.DecodeHexChars(pInput[i + 1], pInput[i + 2]); 108if (ch == Uri.c_DummyChar || ch == '%' || CheckIsReserved(ch, component) || UriHelper.IsNotSafeForUnescape(ch)) 187UriHelper.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)
1008UriHelper.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar, 1026UriHelper.UnescapeString(_string, start, _info.Offset.Query, result, ref count, c_DummyChar, 1199UriHelper.UnescapeString(host, 0, host.Length, ref dest, 1425char ret = UriHelper.DecodeHexChars(pattern[index + 1], pattern[index + 2]); 1900UriHelper.EscapeString(rawString, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 1994if (length > idx && UriHelper.IsLWS(pUriString[length - 1])) 1997while (length != idx && UriHelper.IsLWS(pUriString[--length])) 2229while (UriHelper.IsLWS(_string[idx])) 2475host = UriHelper.EscapeString(host, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2805UriHelper.EscapeString(slice, ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2815UriHelper.UnescapeString(slice[..^1], 2823UriHelper.UnescapeString(slice, 2872host = UriHelper.StripBidiControlCharacters(host, host); 2881UriHelper.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(), 2947UriHelper.EscapeString( 2949ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptHash); 2965UriHelper.UnescapeString(str, offset, _info.Offset.Fragment, 2986UriHelper.EscapeString( 2988ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 3004UriHelper.UnescapeString(str, offset, _info.Offset.End, 3189while (local > idx && UriHelper.IsLWS(str[local - 1])) --local; 3634while ((uint)i < (uint)uriString.Length && UriHelper.IsLWS(uriString[i])) 3784return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 4026newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput)); 4070newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost)); 4103if (UriHelper.StripBidiControlCharacters(host, out string? stripped)) 4110newHost = UriHelper.NormalizeAndConcat(newHost, host); 4266if (i + 2 < end && (c = UriHelper.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar) 4358UriHelper.EscapeString( 4360ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4377UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 4436UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4478UriHelper.UnescapeString(pCopy, 0, copy.Length, 4508char ch = UriHelper.DecodeHexChars(*pch++, *pch++); 4520ch = UriHelper.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++)); 5044dest = UriHelper.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar, 5052UriHelper.EscapeString(str, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash);
System\UriExt.cs (18)
246char value = UriHelper.DecodeHexChars(data[i + 1], data[i + 2]); 248if (!char.IsAscii(value) || UriHelper.Unreserved.Contains(value)) 609UriHelper.UnescapeString( 659UriHelper.UnescapeString( 697UriHelper.EscapeString(stringToEscape, checkExistingEscaped: false, UriHelper.UnreservedReserved); 706UriHelper.EscapeString(stringToEscape, checkExistingEscaped: false, UriHelper.Unreserved); 712UriHelper.EscapeString(charsToEscape, checkExistingEscaped: false, UriHelper.Unreserved, backingString: null); 720UriHelper.TryEscapeDataString(charsToEscape, destination, out charsWritten); 833if (relativeStr.Length > 0 && (UriHelper.IsLWS(relativeStr[0]) || UriHelper.IsLWS(relativeStr[relativeStr.Length - 1]))) 834relativeStr = relativeStr.Trim(UriHelper.s_WSchars); 898return UriHelper.EscapeString(_string, checkExistingEscaped: true, UriHelper.UnreservedReserved); 910UriHelper.UnescapeString(_string, ref vsb, c_DummyChar, c_DummyChar, c_DummyChar, UnescapeMode.EscapeUnescape, null, false); 1041return UriHelper.TestForSubPath(selfPtr, self.Length, otherPtr, other.Length,