twitter/twitter-text-java — pull request #26 by j3h (2012-02-14 17:50:30+00:00)
Title: Fix entity offset double-conversion bug

The entity offset conversion routines sometimes could double-convert
an entity, when its offset adjustment caused it to be examined twice.
This commit uses different routines for conversion in either
direction, that each take special care not to double-convert entities.

This bug was revealed when testing against real user data.