Function printStringPosition

  • Given a string and a position index, gets the row the index represents, displaying the surrounding characters, with a second row showing a caret indicator pointing at the index.

    Parameters

    Returns string