73 references to UriHelper
System.Private.Uri (73)
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 (45)
1058UriHelper.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar, 1076UriHelper.UnescapeString(_string, start, _info.Offset.Query, result, ref count, c_DummyChar, 1249UriHelper.UnescapeString(host, 0, host.Length, ref dest, 1475char ret = UriHelper.DecodeHexChars(pattern[index + 1], pattern[index + 2]); 1950UriHelper.EscapeString(rawString, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2041if (length > idx && UriHelper.IsLWS(pUriString[length - 1])) 2044while (length != idx && UriHelper.IsLWS(pUriString[--length])) 2276while (UriHelper.IsLWS(_string[idx])) 2521host = UriHelper.EscapeString(host, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2850UriHelper.EscapeString(slice, ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2860UriHelper.UnescapeString(slice[..^1], 2868UriHelper.UnescapeString(slice, 2917host = UriHelper.StripBidiControlCharacters(host, host); 2926UriHelper.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(), 2992UriHelper.EscapeString( 2994ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptHash); 3010UriHelper.UnescapeString(str, offset, _info.Offset.Fragment, 3031UriHelper.EscapeString( 3033ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 3049UriHelper.UnescapeString(str, offset, _info.Offset.End, 3234while (local > idx && UriHelper.IsLWS(str[local - 1])) --local; 3661while ((uint)i < (uint)uriString.Length && UriHelper.IsLWS(uriString[i])) 3811return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 4049newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput)); 4093newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost)); 4126if (UriHelper.StripBidiControlCharacters(host, out string? stripped)) 4133newHost = UriHelper.NormalizeAndConcat(newHost, host); 4289if (i + 2 < end && (c = UriHelper.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar) 4381UriHelper.EscapeString( 4383ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4400UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 4444dest.Length = offset + UriHelper.Compress( 4463UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4505UriHelper.UnescapeString(pCopy, 0, copy.Length, 4535char ch = UriHelper.DecodeHexChars(*pch++, *pch++); 4547ch = UriHelper.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++)); 4586destLength = start + UriHelper.Compress( 4950dest = UriHelper.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar, 4958UriHelper.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,