C# Класс IntXLib.StrRepHelper

Helps to work with IntX string representations.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AssertAlphabet ( string alphabet, uint numberBase ) : void

Verfies string alphabet provider by user for validity.

CharDictionaryFromAlphabet ( string alphabet, uint numberBase ) : uint>.IDictionary

Generates char->digit dictionary from alphabet.

GetDigit ( uint>.IDictionary charToDigits, char ch, uint numberBase ) : uint

Returns digit for given char.

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

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

Verfies string alphabet provider by user for validity.
public static AssertAlphabet ( string alphabet, uint numberBase ) : void
alphabet string Alphabet.
numberBase uint String representation number base.
Результат void

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

Generates char->digit dictionary from alphabet.
public static CharDictionaryFromAlphabet ( string alphabet, uint numberBase ) : uint>.IDictionary
alphabet string Alphabet.
numberBase uint String representation number base.
Результат uint>.IDictionary

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

Returns digit for given char.
is not in valid format.
public static GetDigit ( uint>.IDictionary charToDigits, char ch, uint numberBase ) : uint
charToDigits uint>.IDictionary Char->digit dictionary.
ch char Char which represents big integer digit.
numberBase uint String representation number base.
Результат uint