text-manipulation
Version:
A NPM library that assists in text range manipulation
25 lines (24 loc) • 723 B
TypeScript
import { TextBuffer } from './text-buffer';
import { TextPosition } from './text-position';
import { TextRange } from './text-range';
export * from './text-buffer';
export * from './basic-text-buffer';
export * from './text-range';
export * from './mutable-text-range';
export * from './immutable-text-range';
/**
* Create a Textbuffer
*
* @param {string} text
* @param {string} lineDelimiter
* @returns {TextBuffer}
*/
export declare function createBuffer(text: string, lineDelimiter?: string): TextBuffer;
/**
* Create a TextRange
*
* @param {TextPosition} start
* @param {TextPosition} end
* @returns {TextRange}
*/
export declare function createTextRange(start: TextPosition, end: TextPosition): TextRange;