C# Class Microsoft.Automata.CharacterEncodingTool

Provides functionality for character encodings.
Afficher le fichier Open project: AutomataDotNet/Automata Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Truncate() public static méthode

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
Résultat int