Swift: Smart Strings (Too much about String counting, part 4)

I finally gave in and just wrote a workaround. Feedback appreciated. This keeps a running glyph-to-character table, which it updates on each string modification.

This implementation not meant for heavy duty use although it’s slightly better than my original. The struct makes cows look speedy and dainty.

Comments are closed.