MCPcopy
hub / github.com/JuliaPluto/Pluto.jl / TextIterator

Interface TextIterator

frontend/imports/CodemirrorPlutoSetup.d.ts:6–27  ·  view source on GitHub ↗

A text iterator iterates over a sequence of strings. When iterating over a [`Text`](https://codemirror.net/6/docs/ref/#state.Text) document, result values will either be lines or line breaks.

Source from the content-addressed store, hash-verified

4either be lines or line breaks.
5*/
6interface TextIterator extends Iterator<string>, Iterable<string> {
7 /**
8 Retrieve the next string. Optionally skip a given number of
9 positions after the current position. Always returns the object
10 itself.
11 */
12 next(skip?: number): this;
13 /**
14 The current string. Will be the empty string when the cursor is
15 at its end or `next` hasn't been called on it yet.
16 */
17 value: string;
18 /**
19 Whether the end of the iteration has been reached. You should
20 probably check this right after calling `next`.
21 */
22 done: boolean;
23 /**
24 Whether the current string represents a line break.
25 */
26 lineBreak: boolean;
27}
28/**
29The data structure for documents. @nonabstract
30*/

Callers

nothing calls this directly

Implementers 15

oHfrontend-dist/editor.9f609029.js
bfrontend-dist/firebase-app.b603aaa4.js
Ifrontend-dist/firebase-app.b603aaa4.js
gfrontend-dist/frontend.44dc92ac.js
kfrontend-dist/frontend.44dc92ac.js
eAfrontend-dist/frontend.44dc92ac.js
eYfrontend-dist/frontend.44dc92ac.js
eEfrontend-dist/frontend.44dc92ac.js
iGfrontend-dist/frontend.44dc92ac.js
rYfrontend-dist/frontend.44dc92ac.js
oJfrontend-dist/frontend.44dc92ac.js
o8frontend-dist/frontend.44dc92ac.js

Calls

no outgoing calls

Tested by

no test coverage detected