JavaScriptTestEncoder Class¶
Encoder used for unit testing.
- Namespace
Microsoft.Extensions.WebEncoders.Testing
- Assemblies
- Microsoft.Extensions.WebEncoders
Inheritance Hierarchy¶
System.Object
System.Text.Encodings.Web.TextEncoder
System.Text.Encodings.Web.JavaScriptEncoder
Microsoft.Extensions.WebEncoders.Testing.JavaScriptTestEncoder
Syntax¶
public class JavaScriptTestEncoder : JavaScriptEncoder
-
class
Microsoft.Extensions.WebEncoders.Testing.
JavaScriptTestEncoder
Methods¶
-
Encode
(System.IO.TextWriter, System.Char[], System.Int32, System.Int32)¶ public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount)
-
Encode
(System.IO.TextWriter, System.String, System.Int32, System.Int32) public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
-
Encode
(System.String) Return type: System.String public override string Encode(string value)
-
FindFirstCharacterToEncode
(System.Char*, System.Int32)¶ Return type: System.Int32 public override int FindFirstCharacterToEncode(char *text, int textLength)
-
TryEncodeUnicodeScalar
(System.Int32, System.Char*, System.Int32, out System.Int32)¶ Return type: System.Boolean public override bool TryEncodeUnicodeScalar(int unicodeScalar, char *buffer, int bufferLength, out int numberOfCharactersWritten)
-
WillEncode
(System.Int32)¶ Return type: System.Boolean public override bool WillEncode(int unicodeScalar)
-
Properties¶
-
Microsoft.Extensions.WebEncoders.Testing.JavaScriptTestEncoder.
MaxOutputCharactersPerInputCharacter
¶ Return type: System.Int32 public override int MaxOutputCharactersPerInputCharacter { get; }
-