Represents a line of text, such as a line of source code.
TextLine objects are immutable. When a {@link TextDocument document} changes, previously retrieved lines will not represent the latest state.
Represents a line of text, such as a line of source code.
TextLine objects are __immutable__. When a {@link TextDocument document} changes,
previously retrieved lines will not represent the latest state.(empty-or-whitespace? text-line)Whether this line is whitespace only, shorthand for {@link TextLine.firstNonWhitespaceCharacterIndex } === {@link TextLine.text TextLine.text.length}.
Whether this line is whitespace only, shorthand
for {@link TextLine.firstNonWhitespaceCharacterIndex } === {@link TextLine.text TextLine.text.length}.(first-non-whitespace-character-index text-line)The offset of the first character which is not a whitespace character as defined
by /\s/. Note that if a line is all whitespace the length of the line is returned.
The offset of the first character which is not a whitespace character as defined by `/\s/`. **Note** that if a line is all whitespace the length of the line is returned.
(line-number text-line)The zero-based line number.
The zero-based line number.
(range text-line)The range this line covers without the line separator characters.
The range this line covers without the line separator characters.
(range-including-line-break text-line)The range this line covers with the line separator characters.
The range this line covers with the line separator characters.
(text text-line)The text of this line without the line separator characters.
The text of this line without the line separator characters.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |