Files
dotnet-runtime/src/libraries/System.Text.Encodings.Web/tests/IUrlEncoder.cs
T
Igor Šušić a2edf7ced0 Renaming Microsoft.Framework.WebEncoders namespace (dotnet/corefx#40238)
* 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
2019-08-15 08:50:16 -07:00

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);
}
}