Staquia API
    Preparing search index...

    Interface IComposer

    Internal: converts between strings, numbers and positions with the characters of a system.

    interface IComposer {
        compose(string: string): IDigits;
        raw(position: IPosition, length: number): IDigits;
        reduce(number: IDigits): string;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Converts a string to a number: the last character is the key 0, the one before it the key 1, and so on.

      Parameters

      • string: string

        The string to convert.

      Returns IDigits

    • Converts a position to a single number (N followed by Z).

      Parameters

      • position: IPosition

        The position to convert.

      • length: number

        The minimum number of digits, completed with zeroes if the position is shorter.

      Returns IDigits