Breaking 120+ line in half
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1066343 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05242a9c85
commit
0c0402cd3d
|
@ -90,7 +90,8 @@ public abstract class CharSequenceTranslator {
|
|||
if(consumed == 0) {
|
||||
out.write( Character.toChars( Character.codePointAt(input, i) ) );
|
||||
} else {
|
||||
// contract with translators is that they have to understand codepoints and they just took care of a surrogate pair
|
||||
// contract with translators is that they have to understand codepoints
|
||||
// and they just took care of a surrogate pair
|
||||
for(int j=0; j<consumed; j++) {
|
||||
if(i < sz - 2) {
|
||||
i += Character.charCount( Character.codePointAt(input, i) );
|
||||
|
|
Loading…
Reference in New Issue