parameters: (string, i)
return_statement: return string.count('\n', 0, max(0, i)) + 1
docstring: Get line numer of ``string[i]`` in `string`.
  
      :Returns: row, starting at 1
      :Note:    This works for text-strings with ``\\n`` or ``\\r\\n``.
docstring_summary: Get line numer of ``string[i]`` in `string`.
docstring_tokens: Get line numer of string [ i ] in string .
function: def srow(string, i):
      """Get line numer of ``string[i]`` in `string`.
  
      :Returns: row, starting at 1
      :Note:    This works for text-strings with ``\\n`` or ``\\r\\n``.
      """
      return string.count('\n', 0, max(0, i)) + 1
function_tokens: def srow ( string , i ) : return string . count ( '\n' , 0 , max ( 0 , i ) ) + 1