src/swipl-devel/packages/xpce/man/refmanual/md/text_change.md

class text_change {#class-text_change}

Record of a single edit to a text_buffer: the range that was replaced and the text that replaced it. text_change objects are the payload of the text_buffer<-changes chain and let editor, fragment and view follow the buffer's edit history.

Positions are 0-based and use UTF-16 code units to match the LSP/DOM conventions other parts of xpce talk to.

@see class text_buffer @see class fragment @see class editor

Instance variables {#class-text_change-instvars}

Send methods {#class-text_change-send}

Get methods {#class-text_change-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.