68 references to UriHelper
System.Private.Uri (68)
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 (40)
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])) 2474host = UriHelper.EscapeString(host, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2799UriHelper.EscapeString(slice, ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptQuestionMarkHash); 2809UriHelper.UnescapeString(slice[..^1], 2817UriHelper.UnescapeString(slice, 2866host = UriHelper.StripBidiControlCharacters(host, host); 2875UriHelper.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(), 2941UriHelper.EscapeString( 2943ref dest, checkExistingEscaped: true, UriHelper.UnreservedReservedExceptHash); 2959UriHelper.UnescapeString(str, offset, _info.Offset.Fragment, 2980UriHelper.EscapeString( 2982ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 2998UriHelper.UnescapeString(str, offset, _info.Offset.End, 3183while (local > idx && UriHelper.IsLWS(str[local - 1])) --local; 3624while ((uint)i < (uint)uriString.Length && UriHelper.IsLWS(uriString[i])) 3774return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 4094string temp = UriHelper.StripBidiControlCharacters(new ReadOnlySpan<char>(pString + start, end - start)); 4253if (i + 2 < end && (c = UriHelper.DecodeHexChars(str[i + 1], str[i + 2])) != c_DummyChar) 4345UriHelper.EscapeString( 4347ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4364UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: true, UriHelper.UnreservedReserved); 4423UriHelper.EscapeString(copy.AsSpan(), ref dest, checkExistingEscaped: !IsImplicitFile, UriHelper.UnreservedReservedExceptQuestionMarkHash); 4465UriHelper.UnescapeString(pCopy, 0, copy.Length, 4495char ch = UriHelper.DecodeHexChars(*pch++, *pch++); 4507ch = UriHelper.DecodeHexChars((*pnew++ = *pch++), (*pnew++ = *pch++)); 5031dest = UriHelper.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar, 5039UriHelper.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,