C# Class Microsoft.Automata.CharacterEncodingTool

Provides functionality for character encodings.
Datei anzeigen Open project: AutomataDotNet/Automata Class Usage Examples

Public Methods

Method Description
IsSpecified ( BitWidth encoding ) : bool

Returns true iff encoding equals to one of the enums in CharacterEncoding.

Truncate ( BitWidth encoding ) : int

Maps ASCII to 7, extended ASCII to 8, and other encodings to 16. Throws AutomataException if IsSpecified(encoding) is false.

Method Details

IsSpecified() public static method

Returns true iff encoding equals to one of the enums in CharacterEncoding.
public static IsSpecified ( BitWidth encoding ) : bool
encoding BitWidth
return bool

Truncate() public static method

Maps ASCII to 7, extended ASCII to 8, and other encodings to 16. Throws AutomataException if IsSpecified(encoding) is false.
public static Truncate ( BitWidth encoding ) : int
encoding BitWidth
return int