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}.

Returns: boolean

Whether this line is whitespace only, shorthand
for {@link TextLine.firstNonWhitespaceCharacterIndex } === {@link TextLine.text TextLine.text.length}.

**Returns:** `boolean`
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.

Returns: number

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.

**Returns:** `number`
sourceraw docstring

line-numbercljs

(line-number text-line)

The zero-based line number.

Returns: number

The zero-based line number.

**Returns:** `number`
sourceraw docstring

rangecljs

(range text-line)

The range this line covers without the line separator characters.

Returns: Range

The range this line covers without the line separator characters.

**Returns:** `Range`
sourceraw docstring

range-including-line-breakcljs

(range-including-line-break text-line)

The range this line covers with the line separator characters.

Returns: Range

The range this line covers with the line separator characters.

**Returns:** `Range`
sourceraw docstring

textcljs

(text text-line)

The text of this line without the line separator characters.

Returns: string

The text of this line without the line separator characters.

**Returns:** `string`
sourceraw docstring

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

× close