public apply(base: string): string {
let pos = 0;
for (const edit of this.replacements) {
resultText.push(base.substring(pos, edit.replaceRange.start));
resultText.push(edit.newText);
pos = edit.replaceRange.endExclusive;
}
resultText.push(base.substring(pos));
return resultText.join('');
}