c0data
    Preparing search index...

    Class DiffBuilder

    Index
    • Assert that text is present once; nothing changes.

      Parameters

      • text: string

      Returns this

    • Remove oldText, found once after the cursor.

      Parameters

      • oldText: string
      • contextBefore: string = ''
      • contextAfter: string = ''

      Returns this

    • Parameters

      • path: string
      • Optionalfn: () => void

      Returns this

    • Insert text after anchor.

      Parameters

      • anchor: string
      • text: string

      Returns this

    • Parameters

      • text: string

      Returns this

    • anchor, old → new, anchor in one call.

      Parameters

      • contextBefore: string
      • oldText: string
      • newText: string
      • contextAfter: string = ''

      Returns this