Contents

initWithStartLine:startColumn:endLine:endColumn:

Creates a Markdown source position instance from its start and end line and column.

Declaration

- (instancetype) initWithStartLine:(NSInteger) startLine startColumn:(NSInteger) startColumn endLine:(NSInteger) endLine endColumn:(NSInteger) endColumn;

Parameters

  • startLine:

    The line number where text begins in the Markdown source. Specify a 1-based number. For example, the number for the first row is 1, for the second row is 2, and so on.

  • startColumn:

    The column number where text begins in the Markdown source. Specify a 1-based number. For example, the number for the first column is 1, for the second column is 2, and so on. Columns represent UTF-8 indices; for multi-byte characters, the column indicates the first byte.

  • endLine:

    The line number where the Markdown source ends. Specify a 1-based number.

  • endColumn:

    The column number where the Markdown source ends. Specify a 1-based number.