JavaScriptTestEncoder 类
定义
用于单元测试的编码器。Encoder used for unit testing.
public ref class JavaScriptTestEncoder : System::Text::Encodings::Web::JavaScriptEncoder
public class JavaScriptTestEncoder : System.Text.Encodings.Web.JavaScriptEncoder
type JavaScriptTestEncoder = class
inherit JavaScriptEncoder
Public Class JavaScriptTestEncoder
Inherits JavaScriptEncoder
- 继承
构造函数
| JavaScriptTestEncoder() |
属性
| MaxOutputCharactersPerInputCharacter |
方法
| Encode(ReadOnlySpan<Char>, Span<Char>, Int32, Int32, Boolean) |
对提供的字符进行编码。Encodes the supplied characters. (继承自 TextEncoder) |
| Encode(String) | |
| Encode(TextWriter, Char[], Int32, Int32) | |
| Encode(TextWriter, String) |
将指定的字符串编码为 TextWriter 对象。Encodes the specified string to a TextWriter object. (继承自 TextEncoder) |
| Encode(TextWriter, String, Int32, Int32) | |
| EncodeUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean) |
对提供的 UTF-8 文本进行编码。Encodes the supplied UTF-8 text. (继承自 TextEncoder) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| FindFirstCharacterToEncode(Char*, Int32) | |
| FindFirstCharacterToEncodeUtf8(ReadOnlySpan<Byte>) |
查找 UTF-8 文本输入缓冲区中第一个要被当前编码器实例进行转义的元素。Finds the first element in a UTF-8 text input buffer that would be escaped by the current encoder instance. (继承自 TextEncoder) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| TryEncodeUnicodeScalar(Int32, Char*, Int32, Int32) | |
| WillEncode(Int32) | |