@mpeggroup/mpeg-sdl-parser
    Preparing search index...

    Class SdlStringInput

    The SdlStringInput class implements the Input interface for a string input. It provides methods to read and chunk the input string.

    Implements

    • Input
    Index
    lineChunks: boolean = false

    Indicates that the chunks do not already end at line breaks and that client code that wants to work by-line must scanning for line breaks.

    • Get the chunk from the given position. The returned string starts at from (0-based) and, if that isn't the end of the string, may be of any length greater than zero.

      Parameters

      • from: number

        The starting position of the chunk (0-based, inclusive).

      Returns string

    • Read the part of the document between the given positions.

      Parameters

      • from: number

        The starting position (0-based, inclusive).

      • to: number

        The ending position (0-based, exclusive).

      Returns string