Github user chtompki commented on the issue:
https://github.com/apache/commons-lang/pull/251
@dmjones500 - You're correct there, I wasn't thinking about it properly
because I was thinking in terms of `lastIndexOf` moving in from the end of the
`CharSequence` and then having to traverse in from the beginning to sort out
the number of surrogate pairs in the prefix to the matching character. But, if
you simply start with that traversal, then you remain at *O(n)*.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---