Liking cljdoc? Tell your friends :D

dots.vscode.text-line

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.
raw docstring

empty-or-whitespace?cljs

(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}.
sourceraw docstring

first-non-whitespace-character-indexcljs

(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.
sourceraw docstring

line-numbercljs

(line-number text-line)

The zero-based line number.

The zero-based line number.
sourceraw docstring

rangecljs

(range text-line)

The range this line covers without the line separator characters.

The range this line covers without the line separator characters.
sourceraw docstring

range-including-line-breakcljs

(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.
sourceraw docstring

textcljs

(text text-line)

The text of this line without the line separator characters.

The text of this line without the line separator characters.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close