Please review: surrogate fiddle (original) (raw)

Martin Buchholz martinrb at google.com
Tue Mar 19 04:21:49 UTC 2013


On Mon, Mar 18, 2013 at 3:37 PM, Xueming Shen <xueming.shen at oracle.com>wrote:

**

The spec of both affected methods says "the char at the index is returned, if the following conditions are not true 1) hi-surrogate && 2) next index < count && 3) char at next is lo-surrogate So it is the right thing to do to simply return the char at index, if it is the last char in the buffer. Right.

Martin, the purpose of dup the code here is for better performance?

Yes.



More information about the core-libs-dev mailing list