parameters: (string, row, col)
return_statement: return n+col-1
docstring: Get index of the character at `row`/`col` in `string`.
  
      :Parameters:
          - `row`: row number, starting at 1.
          - `col`: column number, starting at 1.
      :Returns:    ``i``, starting at 0 (but may be <1 if row/col<0)
      :Note:       This works for text-strings with '\\n' or '\\r\\n'.
docstring_summary: Get index of the character at `row`/`col` in `string`.
docstring_tokens: Get index of the character at row / col in string .
function: def sindex(string, row, col):
      """Get index of the character at `row`/`col` in `string`.
  
      :Parameters:
          - `row`: row number, starting at 1.
          - `col`: column number, starting at 1.
      :Returns:    ``i``, starting at 0 (but may be <1 if row/col<0)
      :Note:       This works for text-strings with '\\n' or '\\r\\n'.
      """
      n = 0
      for _ in range(row-1):
          n = string.find('\n', n) + 1
      return n+col-1
function_tokens: def sindex ( string , row , col ) : n = 0 for _ in range ( row - 1 ) : n = string . find ( '\n' , n ) + 1 return n + col - 1