I was reading this paper "Ropes: an Alternative to Strings" about ropes
[figure from the same paper]
and I was wondering if that is the data structure used by today's browsers to implement textboxes or not. Do we use ropes or some other data structures for this?
Are ropes used somewhere besides textboxes?
The previous title of my question somehow also meant that I wanted to know how the string "remembering" happens - as I type, I get suggestions. I have changed it now.
What I want to know is what data structure is used to store the string when I type it. Is it something simple like a char array or something complex like a rope?
Most probably just use whatever text box is provided by the underlying OS/windowing system. I'd guess in at least most cases, that'll be a simple linear array for a text box -- most rarely hold anywhere close to the amount of data necessary for anything like a rope to really make sense.