Options
All
  • Public
  • Public/Protected
  • All
Menu

An object that represents a mutable sequence of characters.

Hierarchy

  • StringBuilder

Index

Constructors

Accessors

  • get count(): number

Methods

  • charAt(index: number): string
  • clear(): void
  • remarks

    Complexity:

    • Time complexity: O(N) (worst case)
    • Space complexity: O(1)

    where:

    • N: character count of this sequence

    Parameters

    • startIndex: number

      The beginning index, inclusive.

    • endIndex: number

      The ending index, exclusive.

    Returns StringBuilder

  • Inserts a sequence of characters into this sequence at the specified index.

    remarks

    Complexity:

    • Time complexity: O(N + S)
    • Space complexity: O(1) (amortized)

    where:

    • N: character count of this sequence
    • S: character count of the new sequence to be inserted

    Parameters

    Returns StringBuilder

  • toString(): string
  • Builds and returns the character sequence represented by this object.

    remarks

    Complexity:

    • Time complexity: O(N)
    • Space complexity: O(N)

    where:

    • N: character count of this sequence

    Returns string

Generated using TypeDoc