Contents

XCSourceTextRange

A half-open range of text in a buffer you use to select text or specify the insertion point for new text.

Declaration

class XCSourceTextRange

Overview

Source text ranges are half-open ranges. As a result, source text ranges include the character at the start position but exclude the character at the end position.

A range with equal start and end positions may be used to indicate a point within the buffer, such as an insertion point. The start and end position may be improperly ordered while you prepare them in your own code, but must be properly ordered before passing an XCSourceTextRange instance to other methods.

Topics

Creating Source Text Ranges

Getting the Bounds of Source Text Ranges

See Also

Source Text