Special Text-Editing Considerations
It's worth taking a little time to look at a few issues that arise when you're writing a Unicode-compatible text-editing utility. There are a number of Unicode-specific things to keep in mind when allowing a user to edit text.
Optimizing for Editing Performance
The first issue isn't actually Unicode-specific at all, but if you don't already know about it, it's worth taking a few minutes to discuss. That's a useful technique for speeding performance during editing.
Suppose you have a 1 million character document, and you start typing at the beginning. If you've stored your text in a single contiguous block (probably with some slop space at the end so you don't have to reallocate your character storage on every ...
Get Unicode Demystified now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.