mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 15:55:04 -10:00
* Renaming the namespace Microsoft.Framework.WebEncoders to System.Text.Encodings.Web.Tests - Namespace Microsoft.Framework.WebEncoders renamed to System.Text.Encodings.Web.Tests * Changed aliases naming from camelCase to PascalCase * Deleted unnecessary using directives and reverted EncoderExtensionsTests Deleted unnecessary using directives. Reverted changes made in EncoderCommonTests.cs to commit dotnet/corefx@db1dd29eda and changed using directive for test namespace to right one. Commit migrated from https://github.com/dotnet/corefx/commit/1a8fab5315d2de425d530c6fb7d801ade653bc41
46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.IO;
|
|
|
|
namespace System.Text.Encodings.Web.Tests
|
|
{
|
|
/// <summary>
|
|
/// Provides services for URL-escaping strings.
|
|
/// </summary>
|
|
internal interface IUrlEncoder
|
|
{
|
|
/// <summary>
|
|
/// URL-escapes a character array and writes the result to the supplied
|
|
/// output.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The encoded value is appropriately encoded for inclusion in the segment, query, or
|
|
/// fragment portion of a URI.
|
|
/// </remarks>
|
|
void UrlEncode(char[] value, int startIndex, int characterCount, TextWriter output);
|
|
|
|
/// <summary>
|
|
/// URL-escapes a given input string.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// The URL-escaped value, or null if the input string was null.
|
|
/// </returns>
|
|
/// <remarks>
|
|
/// The return value is appropriately encoded for inclusion in the segment, query, or
|
|
/// fragment portion of a URI.
|
|
/// </remarks>
|
|
string UrlEncode(string value);
|
|
|
|
/// <summary>
|
|
/// URL-escapes a string and writes the result to the supplied output.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The encoded value is appropriately encoded for inclusion in the segment, query, or
|
|
/// fragment portion of a URI.
|
|
/// </remarks>
|
|
void UrlEncode(string value, int startIndex, int characterCount, TextWriter output);
|
|
}
|
|
}
|