MCPcopy Index your code
hub / github.com/ajaxorg/ace / getTextRange

Method getTextRange

src/document.js:167–169  ·  view source on GitHub ↗

* Returns all the text within `range` as a single string. * @param {IRange} range The range to work with. * * @returns {String}

(range)

Source from the content-addressed store, hash-verified

165 * @returns {String}
166 **/
167 getTextRange(range) {
168 return this.getLinesForRange(range).join(this.getNewLineCharacter());
169 }
170
171 /**
172 * Returns all the text within `range` as an array of lines.

Callers 15

testFunction · 0.95
replaceMethod · 0.95
selection_test.jsFile · 0.45
getSelectedTextMethod · 0.45
removeMethod · 0.45
toLowerCaseMethod · 0.45
toUpperCaseMethod · 0.45
indentMethod · 0.45
modifyNumberMethod · 0.45
duplicateSelectionMethod · 0.45
$tryReplaceMethod · 0.45

Calls 3

getLinesForRangeMethod · 0.95
getNewLineCharacterMethod · 0.95
joinMethod · 0.45

Tested by 1

testFunction · 0.76