1 |
/* EncoderUTF8.java -- Encoding class for the UTF-8 scheme |
/* EncoderUTF8.java -- Encoding class for the UTF-8 scheme |
2 |
Copyright (C) 1998 Free Software Foundation, Inc. |
Copyright (C) 1998, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
110 |
{ |
{ |
111 |
for (int i = buf_offset; i < len; i++) |
for (int i = buf_offset; i < len; i++) |
112 |
{ |
{ |
113 |
if (buf[i] >= 0x0000 && buf[i] <= 0x007F) |
if (buf[i] <= 0x007F) |
114 |
{ |
{ |
115 |
bbuf[bbuf_offset] = (byte)(buf[i] & 0xFF); |
bbuf[bbuf_offset] = (byte)(buf[i] & 0xFF); |
116 |
++bbuf_offset; |
++bbuf_offset; |