BufferGapMethod

HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences

The Buffer Gap method is useful when your editing model is that of a string/stream of bytes/characters. Essentially, it consists of moving a "hole" around in your string, into which you will be inserting characters. Its strong points are that insertion and deletion become trivial; its weak points are that only one editing focus is allowed, and that in VM systems, paging behavior can be poor.

It is just one of many possible BufferDataStructures.

This is the model that EmacsFamily TextEditors have.

CraigFinseth's book on implementing text editors goes over this method in detail. His book is available for free on his website at http://www.finseth.com


HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences
Edit text of this page | View other revisions
Last edited June 28, 2008 8:41 pm (diff)
Search: