C# Класс Microsoft.Automata.CharacterEncodingTool

Provides functionality for character encodings.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

IsSpecified() публичный статический Метод

Returns true iff encoding equals to one of the enums in CharacterEncoding.
public static IsSpecified ( BitWidth encoding ) : bool
encoding BitWidth
Результат bool

Truncate() публичный статический Метод

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
Результат int