cinder/Cinder — pull request #230 by paulhoux (2012-09-22 00:45:01+00:00)
Title: Added 2 functions for fast line breaking: they populate 2 vectors with...

...string positions where breaks MUST occur, and where they are ALLOWED. Using this data, a text can quite easily be word-wrapped and it doesn't require much memory. The lineBreakUtf8() method could be rewritten to use these new functions.

Using these new functions, my own word wrapping functions became faster, more concise and much more readable. See how much code I could get rid of:
https://github.com/paulhoux/Cinder-Samples/compare/master...text