cspell-dictionary 6.9.0 → 6.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/SpellingDictionary/ForbiddenWordsDictionary.d.ts +11 -0
  2. package/dist/SpellingDictionary/ForbiddenWordsDictionary.js +73 -0
  3. package/dist/SpellingDictionary/SpellingDictionary.d.ts +16 -2
  4. package/dist/SpellingDictionary/SpellingDictionaryFromTrie.d.ts +9 -1
  5. package/dist/SpellingDictionary/SpellingDictionaryFromTrie.js +12 -3
  6. package/dist/SpellingDictionary/createSpellingDictionary.d.ts +12 -5
  7. package/dist/SpellingDictionary/createSpellingDictionary.js +13 -28
  8. package/dist/SpellingDictionary/index.d.ts +3 -1
  9. package/dist/SpellingDictionary/index.js +5 -2
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +2 -1
  12. package/package.json +11 -5
  13. package/dist/SpellingDictionary/Dictionaries.d.ts +0 -9
  14. package/dist/SpellingDictionary/Dictionaries.js +0 -61
  15. package/dist/SpellingDictionary/SpellingDictionaryError.d.ts +0 -10
  16. package/dist/SpellingDictionary/SpellingDictionaryError.js +0 -18
  17. package/dist/util/Comparable.d.ts +0 -20
  18. package/dist/util/Comparable.js +0 -55
  19. package/dist/util/FreqCounter.d.ts +0 -16
  20. package/dist/util/FreqCounter.js +0 -52
  21. package/dist/util/Memorizer.d.ts +0 -65
  22. package/dist/util/Memorizer.js +0 -138
  23. package/dist/util/MinHeapQueue.d.ts +0 -23
  24. package/dist/util/MinHeapQueue.js +0 -97
  25. package/dist/util/PairingHeap.d.ts +0 -32
  26. package/dist/util/PairingHeap.js +0 -90
  27. package/dist/util/TextMap.d.ts +0 -15
  28. package/dist/util/TextMap.js +0 -62
  29. package/dist/util/TextRange.d.ts +0 -28
  30. package/dist/util/TextRange.js +0 -144
  31. package/dist/util/debugPerf.d.ts +0 -9
  32. package/dist/util/debugPerf.js +0 -22
  33. package/dist/util/errors.d.ts +0 -17
  34. package/dist/util/errors.js +0 -52
  35. package/dist/util/fileReader.d.ts +0 -4
  36. package/dist/util/fileReader.js +0 -21
  37. package/dist/util/iterableIteratorLib.d.ts +0 -4
  38. package/dist/util/iterableIteratorLib.js +0 -14
  39. package/dist/util/logger.d.ts +0 -33
  40. package/dist/util/logger.js +0 -46
  41. package/dist/util/memorizerWeak.d.ts +0 -6
  42. package/dist/util/memorizerWeak.js +0 -42
  43. package/dist/util/resolveFile.d.ts +0 -13
  44. package/dist/util/resolveFile.js +0 -127
  45. package/dist/util/search.d.ts +0 -6
  46. package/dist/util/search.js +0 -23
  47. package/dist/util/textRegex.d.ts +0 -1
  48. package/dist/util/textRegex.js +0 -2
  49. package/dist/util/timer.d.ts +0 -26
  50. package/dist/util/timer.js +0 -58
  51. package/dist/util/util.test copy.d.ts +0 -2
  52. package/dist/util/util.test copy.js +0 -17
  53. package/dist/util/wordSplitter.d.ts +0 -46
  54. package/dist/util/wordSplitter.js +0 -326
@@ -1,65 +0,0 @@
1
- /** Only types that can be easily turned into strings */
2
- declare type P0 = string | number | boolean | RegExp | undefined;
3
- declare type Primitive = P0 | P0[];
4
- /**
5
- * Memorize the result of a function call to be returned on later calls with the same parameters.
6
- *
7
- * Note: The parameters are converted into a string: `key = args.join('>!@[')`
8
- *
9
- * For speed, it keeps two caches, L0 and L1. Each cache can contain up to `size` values. But that actual number
10
- * of cached values is between `size + 1` and `size * 2`.
11
- *
12
- * Caches are NOT sorted. Items are added to L0 until it is full. Once it is full, L1 takes over L0's values and L0 is cleared.
13
- *
14
- * If an item is not found in L0, L1 is checked before calling the `fn` and the resulting value store in L0.
15
- *
16
- * @param fn - function to be called.
17
- * @param size - size of cache
18
- */
19
- export declare function memorizer<F extends (...args: Primitive[]) => any, Args extends Parameters<F> = Parameters<F>, R extends ReturnType<F> = ReturnType<F>>(fn: F, size?: number): (...args: Args) => R;
20
- /**
21
- * Memorize the result of a function call to be returned on later calls with the same parameters.
22
- *
23
- * Note: `keyFn` is use to convert the function parameters into a string to look up in the cache.
24
- *
25
- * For speed, it keeps two caches, L0 and L1. Each cache can contain up to `size` values. But that actual number
26
- * of cached values is between `size + 1` and `size * 2`.
27
- *
28
- * Caches are NOT sorted. Items are added to L0 until it is full. Once it is full, L1 takes over L0's values and L0 is cleared.
29
- *
30
- * If an item is not found in L0, L1 is checked before calling the `fn` and the resulting value store in L0.
31
- *
32
- * @param fn - function to be memorized
33
- * @param keyFn - extracts a `key` value from the arguments to `fn` to be used as the key to the cache
34
- * @param size - size of the cache.
35
- * @returns A function
36
- */
37
- export declare function memorizerKeyBy<F extends (...args: any[]) => any, Args extends Parameters<F> = Parameters<F>, R extends ReturnType<F> = ReturnType<F>>(fn: F, keyFn: (...args: Args) => string, size?: number): (...args: Args) => R;
38
- /**
39
- * Create a function that memorizes the last call. If the next call is called with the same arguments, the
40
- * the last value is returned.
41
- * @param fn - function to memorize
42
- * @returns a new function.
43
- */
44
- export declare function memorizeLastCall<T>(fn: (...p: []) => T): (...p: []) => T;
45
- export declare function memorizeLastCall<T, K0>(fn: (...p: [K0]) => T): (...p: [K0]) => T;
46
- export declare function memorizeLastCall<T, K0, K1>(fn: (...p: [K0, K1]) => T): (...p: [K0, K1]) => T;
47
- export declare function memorizeLastCall<T, K0, K1, K2>(fn: (...p: [K0, K1, K2]) => T): (...p: [K0, K1, K2]) => T;
48
- export declare function memorizeLastCall<T, K0, K1, K2, K3>(fn: (...p: [K0, K1, K2, K3]) => T): (...p: [K0, K1, K2, K3]) => T;
49
- export declare function memorizeLastCall<T, K>(fn: (...p: [...K[]]) => T): (...p: [...K[]]) => T;
50
- /**
51
- * Creates a function that will call `fn` exactly once when invoked and remember the value returned.
52
- * All subsequent calls will return exactly same value.
53
- * @param fn - function to call
54
- * @returns a new function
55
- */
56
- export declare function callOnce<T>(fn: () => T): () => T;
57
- /**
58
- * Create a function that will memorize all calls to `fn` to ensure that `fn` is
59
- * called exactly once for each unique set of arguments.
60
- * @param fn - function to memorize
61
- * @returns a function
62
- */
63
- export declare function memorizerAll<K extends any[], T>(fn: (...p: K) => T): (...p: K) => T;
64
- export {};
65
- //# sourceMappingURL=Memorizer.d.ts.map
@@ -1,138 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.memorizerAll = exports.callOnce = exports.memorizeLastCall = exports.memorizerKeyBy = exports.memorizer = void 0;
4
- const util_1 = require("./util");
5
- /* eslint-disable @typescript-eslint/no-explicit-any */
6
- const defaultSize = 50000;
7
- /**
8
- * Memorize the result of a function call to be returned on later calls with the same parameters.
9
- *
10
- * Note: The parameters are converted into a string: `key = args.join('>!@[')`
11
- *
12
- * For speed, it keeps two caches, L0 and L1. Each cache can contain up to `size` values. But that actual number
13
- * of cached values is between `size + 1` and `size * 2`.
14
- *
15
- * Caches are NOT sorted. Items are added to L0 until it is full. Once it is full, L1 takes over L0's values and L0 is cleared.
16
- *
17
- * If an item is not found in L0, L1 is checked before calling the `fn` and the resulting value store in L0.
18
- *
19
- * @param fn - function to be called.
20
- * @param size - size of cache
21
- */
22
- function memorizer(fn, size) {
23
- return memorizerKeyBy(fn, (...args) => args.join('>!@['), size);
24
- }
25
- exports.memorizer = memorizer;
26
- /**
27
- * Memorize the result of a function call to be returned on later calls with the same parameters.
28
- *
29
- * Note: `keyFn` is use to convert the function parameters into a string to look up in the cache.
30
- *
31
- * For speed, it keeps two caches, L0 and L1. Each cache can contain up to `size` values. But that actual number
32
- * of cached values is between `size + 1` and `size * 2`.
33
- *
34
- * Caches are NOT sorted. Items are added to L0 until it is full. Once it is full, L1 takes over L0's values and L0 is cleared.
35
- *
36
- * If an item is not found in L0, L1 is checked before calling the `fn` and the resulting value store in L0.
37
- *
38
- * @param fn - function to be memorized
39
- * @param keyFn - extracts a `key` value from the arguments to `fn` to be used as the key to the cache
40
- * @param size - size of the cache.
41
- * @returns A function
42
- */
43
- function memorizerKeyBy(fn, keyFn, size = defaultSize) {
44
- let count = 0;
45
- let cacheL0 = Object.create(null);
46
- let cacheL1 = Object.create(null);
47
- return (...args) => {
48
- const key = keyFn(...args);
49
- if (key in cacheL0)
50
- return cacheL0[key];
51
- const v = key in cacheL1 ? cacheL1[key] : fn(...args);
52
- if (count >= size) {
53
- cacheL1 = cacheL0;
54
- cacheL0 = Object.create(null);
55
- count = 0;
56
- }
57
- cacheL0[key] = v;
58
- ++count;
59
- return v;
60
- };
61
- }
62
- exports.memorizerKeyBy = memorizerKeyBy;
63
- function memorizeLastCall(fn) {
64
- let last;
65
- return (...p) => {
66
- if (last && (0, util_1.isArrayEqual)(last.args, p)) {
67
- return last.value;
68
- }
69
- const args = p;
70
- const value = fn(...args);
71
- last = { args, value };
72
- return value;
73
- };
74
- }
75
- exports.memorizeLastCall = memorizeLastCall;
76
- /**
77
- * Creates a function that will call `fn` exactly once when invoked and remember the value returned.
78
- * All subsequent calls will return exactly same value.
79
- * @param fn - function to call
80
- * @returns a new function
81
- */
82
- function callOnce(fn) {
83
- let last;
84
- return () => {
85
- if (last) {
86
- return last.value;
87
- }
88
- last = {
89
- value: fn(),
90
- };
91
- return last.value;
92
- };
93
- }
94
- exports.callOnce = callOnce;
95
- /**
96
- * Create a function that will memorize all calls to `fn` to ensure that `fn` is
97
- * called exactly once for each unique set of arguments.
98
- * @param fn - function to memorize
99
- * @returns a function
100
- */
101
- function memorizerAll(fn) {
102
- const r = {};
103
- function find(p) {
104
- let n = r;
105
- for (const k of p) {
106
- if (!n)
107
- break;
108
- n = n.c?.get(k);
109
- }
110
- return n;
111
- }
112
- function set(p, v) {
113
- let n = r;
114
- for (const k of p) {
115
- const c = n.c?.get(k);
116
- if (c) {
117
- n = c;
118
- continue;
119
- }
120
- const r = {};
121
- n.c = n.c || new Map();
122
- n.c.set(k, r);
123
- n = r;
124
- }
125
- n.v = v;
126
- }
127
- return (...p) => {
128
- const f = find(p);
129
- if (f && 'v' in f) {
130
- return f.v;
131
- }
132
- const v = fn(...p);
133
- set(p, v);
134
- return v;
135
- };
136
- }
137
- exports.memorizerAll = memorizerAll;
138
- //# sourceMappingURL=Memorizer.js.map
@@ -1,23 +0,0 @@
1
- declare function addToHeap<T>(t: T[], c: T, compare: (a: T, b: T) => number): void;
2
- declare function takeFromHeap<T>(t: T[], compare: (a: T, b: T) => number): T | undefined;
3
- /**
4
- * MinHeapQueue - based upon a minHeap array.
5
- */
6
- export declare class MinHeapQueue<T> implements IterableIterator<T> {
7
- readonly compare: (a: T, b: T) => number;
8
- private values;
9
- constructor(compare: (a: T, b: T) => number);
10
- add(t: T): MinHeapQueue<T>;
11
- get length(): number;
12
- dequeue(): T | undefined;
13
- concat(i: Iterable<T>): MinHeapQueue<T>;
14
- next(): IteratorResult<T>;
15
- [Symbol.iterator](): IterableIterator<T>;
16
- clone(): MinHeapQueue<T>;
17
- }
18
- export declare const __testing__: {
19
- addToHeap: typeof addToHeap;
20
- takeFromHeap: typeof takeFromHeap;
21
- };
22
- export {};
23
- //# sourceMappingURL=MinHeapQueue.d.ts.map
@@ -1,97 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.__testing__ = exports.MinHeapQueue = void 0;
4
- function swap(t, i, j) {
5
- const a = t[i];
6
- t[i] = t[j];
7
- t[j] = a;
8
- }
9
- function addToHeap(t, c, compare) {
10
- t.push(c);
11
- let b = t.length - 1;
12
- let a = (b - 1) >> 1;
13
- while (b > 0 && compare(t[a], t[b]) >= 0) {
14
- swap(t, a, b);
15
- b = a;
16
- a = (b - 1) >> 1;
17
- }
18
- }
19
- function takeFromHeap(t, compare) {
20
- const result = t[0];
21
- if (t.length <= 1) {
22
- t.length = 0;
23
- return result;
24
- }
25
- t[0] = t[t.length - 1];
26
- t.length -= 1;
27
- const m = t.length - 1;
28
- let i = 0;
29
- let j = i * 2 + 1;
30
- while (j < m) {
31
- const a = j;
32
- const b = j + 1;
33
- const k = compare(t[a], t[b]) < 0 ? a : b;
34
- if (compare(t[i], t[k]) <= 0) {
35
- break;
36
- }
37
- swap(t, i, k);
38
- i = k;
39
- j = i * 2 + 1;
40
- }
41
- if (j === m) {
42
- if (compare(t[i], t[j]) > 0) {
43
- swap(t, i, j);
44
- }
45
- }
46
- return result;
47
- }
48
- /**
49
- * MinHeapQueue - based upon a minHeap array.
50
- */
51
- class MinHeapQueue {
52
- constructor(compare) {
53
- this.compare = compare;
54
- this.values = [];
55
- }
56
- add(t) {
57
- addToHeap(this.values, t, this.compare);
58
- return this;
59
- }
60
- get length() {
61
- return this.values.length;
62
- }
63
- dequeue() {
64
- return takeFromHeap(this.values, this.compare);
65
- }
66
- concat(i) {
67
- for (const v of i) {
68
- this.add(v);
69
- }
70
- return this;
71
- }
72
- next() {
73
- const value = this.dequeue();
74
- return value !== undefined
75
- ? {
76
- value,
77
- }
78
- : {
79
- value,
80
- done: true,
81
- };
82
- }
83
- [Symbol.iterator]() {
84
- return this;
85
- }
86
- clone() {
87
- const clone = new MinHeapQueue(this.compare);
88
- clone.values = this.values.concat();
89
- return clone;
90
- }
91
- }
92
- exports.MinHeapQueue = MinHeapQueue;
93
- exports.__testing__ = {
94
- addToHeap,
95
- takeFromHeap,
96
- };
97
- //# sourceMappingURL=MinHeapQueue.js.map
@@ -1,32 +0,0 @@
1
- export interface PairHeapNode<T> {
2
- /** Value */
3
- v: T;
4
- /** Siblings */
5
- s: PairHeapNode<T> | undefined;
6
- /** Children */
7
- c: PairHeapNode<T> | undefined;
8
- }
9
- export declare type CompareFn<T> = (a: T, b: T) => number;
10
- export declare class PairingHeap<T> implements IterableIterator<T> {
11
- readonly compare: CompareFn<T>;
12
- private _heap;
13
- private _size;
14
- constructor(compare: CompareFn<T>);
15
- add(v: T): this;
16
- dequeue(): T | undefined;
17
- concat(i: Iterable<T>): this;
18
- next(): IteratorResult<T>;
19
- peek(): T | undefined;
20
- [Symbol.iterator](): IterableIterator<T>;
21
- get length(): number;
22
- }
23
- declare function insert<T>(compare: CompareFn<T>, heap: PairHeapNode<T> | undefined, v: T): PairHeapNode<T>;
24
- declare function merge<T>(compare: CompareFn<T>, a: PairHeapNode<T>, b: PairHeapNode<T>): PairHeapNode<T>;
25
- declare function mergeSiblings<T>(compare: CompareFn<T>, n: PairHeapNode<T>): PairHeapNode<T>;
26
- export declare const heapMethods: {
27
- insert: typeof insert;
28
- merge: typeof merge;
29
- mergeSiblings: typeof mergeSiblings;
30
- };
31
- export {};
32
- //# sourceMappingURL=PairingHeap.d.ts.map
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.heapMethods = exports.PairingHeap = void 0;
4
- class PairingHeap {
5
- constructor(compare) {
6
- this.compare = compare;
7
- this._size = 0;
8
- }
9
- add(v) {
10
- this._heap = insert(this.compare, this._heap, v);
11
- ++this._size;
12
- return this;
13
- }
14
- dequeue() {
15
- const n = this.next();
16
- if (n.done)
17
- return undefined;
18
- return n.value;
19
- }
20
- concat(i) {
21
- for (const v of i) {
22
- this.add(v);
23
- }
24
- return this;
25
- }
26
- next() {
27
- if (!this._heap) {
28
- return { value: undefined, done: true };
29
- }
30
- const value = this._heap.v;
31
- --this._size;
32
- this._heap = removeHead(this.compare, this._heap);
33
- return { value };
34
- }
35
- peek() {
36
- return this._heap?.v;
37
- }
38
- [Symbol.iterator]() {
39
- return this;
40
- }
41
- get length() {
42
- return this._size;
43
- }
44
- }
45
- exports.PairingHeap = PairingHeap;
46
- function removeHead(compare, heap) {
47
- if (!heap || !heap.c)
48
- return undefined;
49
- return mergeSiblings(compare, heap.c);
50
- }
51
- function insert(compare, heap, v) {
52
- const n = {
53
- v,
54
- s: undefined,
55
- c: undefined,
56
- };
57
- if (!heap || compare(v, heap.v) <= 0) {
58
- n.c = heap;
59
- return n;
60
- }
61
- n.s = heap.c;
62
- heap.c = n;
63
- return heap;
64
- }
65
- function merge(compare, a, b) {
66
- if (compare(a.v, b.v) <= 0) {
67
- a.s = undefined;
68
- b.s = a.c;
69
- a.c = b;
70
- return a;
71
- }
72
- b.s = undefined;
73
- a.s = b.c;
74
- b.c = a;
75
- return b;
76
- }
77
- function mergeSiblings(compare, n) {
78
- if (!n.s)
79
- return n;
80
- const s = n.s;
81
- const ss = s.s;
82
- const m = merge(compare, n, s);
83
- return ss ? merge(compare, m, mergeSiblings(compare, ss)) : m;
84
- }
85
- exports.heapMethods = {
86
- insert,
87
- merge,
88
- mergeSiblings,
89
- };
90
- //# sourceMappingURL=PairingHeap.js.map
@@ -1,15 +0,0 @@
1
- import { MappedText } from '@cspell/cspell-types';
2
- import { Range } from '@cspell/cspell-types/Parser';
3
- /**
4
- * Extract a substring from a TextMap.
5
- * @param textMap - A text range with an optional map
6
- * @param extractRange - The range in the original document to extract
7
- * @returns The TextMap covering extractRange
8
- */
9
- export declare function extractTextMapRangeOrigin(textMap: MappedText, extractRange: Range): MappedText;
10
- interface WithRange {
11
- readonly range: Range;
12
- }
13
- export declare function doesIntersect(textMap: WithRange, rangeOrigin: Range): boolean;
14
- export {};
15
- //# sourceMappingURL=TextMap.d.ts.map
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.doesIntersect = exports.extractTextMapRangeOrigin = void 0;
7
- const assert_1 = __importDefault(require("assert"));
8
- /**
9
- * Extract a substring from a TextMap.
10
- * @param textMap - A text range with an optional map
11
- * @param extractRange - The range in the original document to extract
12
- * @returns The TextMap covering extractRange
13
- */
14
- function extractTextMapRangeOrigin(textMap, extractRange) {
15
- const { text: srcTxt, range: srcRange, map: srcMap } = textMap;
16
- const [r0, r1] = srcRange;
17
- const startOrig = Math.min(Math.max(extractRange[0], r0), r1);
18
- const endOrig = Math.min(Math.max(extractRange[1], r0), r1);
19
- const a = startOrig - r0;
20
- const b = endOrig - r0;
21
- const range = [startOrig, endOrig];
22
- if (!srcMap || !srcMap.length || a === b) {
23
- const text = srcTxt.slice(a, b);
24
- return { text, range };
25
- }
26
- (0, assert_1.default)((srcMap.length & 1) === 0, 'Map must be pairs of values.');
27
- const mapLen = srcMap.length;
28
- const mapEndSrc = srcMap[mapLen - 2];
29
- const mapEndDst = srcMap[mapLen - 1];
30
- const endDiff = srcTxt.length - mapEndDst;
31
- const head = !srcMap[0] && !srcMap[1] ? [] : [0, 0];
32
- const tail = [mapEndSrc + endDiff, mapEndDst + endDiff];
33
- const sMap = head.concat(srcMap).concat(tail);
34
- let idx = 0;
35
- for (; idx < sMap.length && a >= sMap[idx]; idx += 2) {
36
- // empty
37
- }
38
- const aIdx = idx;
39
- idx -= 2;
40
- const a0 = a - sMap[idx];
41
- const a1 = a0 + sMap[idx + 1];
42
- for (; idx < sMap.length && b > sMap[idx]; idx += 2) {
43
- // empty
44
- }
45
- const bIdx = idx;
46
- const b0 = b - sMap[idx];
47
- const b1 = b0 + sMap[idx + 1];
48
- const text = srcTxt.slice(a1, b1);
49
- if (bIdx === aIdx) {
50
- return { text, range };
51
- }
52
- const ab = [a0, a1];
53
- const map = sMap.slice(aIdx, bIdx + 2).map((v, i) => v - ab[i & 1]);
54
- return { text, range, map };
55
- }
56
- exports.extractTextMapRangeOrigin = extractTextMapRangeOrigin;
57
- function doesIntersect(textMap, rangeOrigin) {
58
- const r = textMap.range;
59
- return r[0] < rangeOrigin[1] && r[1] > rangeOrigin[0];
60
- }
61
- exports.doesIntersect = doesIntersect;
62
- //# sourceMappingURL=TextMap.js.map
@@ -1,28 +0,0 @@
1
- export interface MatchRange {
2
- startPos: number;
3
- endPos: number;
4
- }
5
- export interface MatchRangeWithText extends MatchRange {
6
- text: string;
7
- }
8
- export interface MatchRangeOptionalText extends MatchRange {
9
- text?: string;
10
- }
11
- export declare function findMatchingRanges(pattern: RegExp, text: string): MatchRangeOptionalText[];
12
- export declare function unionRanges(ranges: MatchRange[]): MatchRange[];
13
- export declare function findMatchingRangesForPatterns(patterns: RegExp[], text: string): MatchRange[];
14
- /**
15
- * Create a new set of positions that have the excluded position ranges removed.
16
- */
17
- export declare function excludeRanges(includeRanges: MatchRange[], excludeRanges: MatchRange[]): MatchRange[];
18
- export declare function extractRangeText(text: string, ranges: MatchRange[]): MatchRangeWithText[];
19
- declare const SymSortedMatchRangeArray: unique symbol;
20
- interface SortedMatchRangeArray extends Array<MatchRange> {
21
- [SymSortedMatchRangeArray]: true;
22
- }
23
- declare function makeSortedMatchRangeArray(sortedValues: MatchRange[]): SortedMatchRangeArray;
24
- export declare const __testing__: {
25
- makeSortedMatchRangeArray: typeof makeSortedMatchRangeArray;
26
- };
27
- export {};
28
- //# sourceMappingURL=TextRange.d.ts.map