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:
Henri Yandell 2011-02-02 06:25:20 +00:00
parent 05242a9c85
commit 0c0402cd3d
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ public final void translate(CharSequence input, Writer out) throws IOException {
if(consumed == 0) { if(consumed == 0) {
out.write( Character.toChars( Character.codePointAt(input, i) ) ); out.write( Character.toChars( Character.codePointAt(input, i) ) );
} else { } 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++) { for(int j=0; j<consumed; j++) {
if(i < sz - 2) { if(i < sz - 2) {
i += Character.charCount( Character.codePointAt(input, i) ); i += Character.charCount( Character.codePointAt(input, i) );