Staquia API
    Preparing search index...

    Interface ILexicon

    Internal: converts between the characters of a system and their digit values.

    interface ILexicon {
        getCharacter(code: number): string;
        getCode(value: string): number;
        getMiddle(): string;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the character of a digit value.

      Parameters

      • code: number

        The digit value (0 is the zero).

      Returns string

    • Gets the digit value of a character.

      Parameters

      • value: string

        The character.

      Returns number

    • Gets the middle digit of the system: ceil((first + last - 1) / 2), the digit of start().

      Returns string