aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert/Input_UnicodeBig.java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2016-09-30 16:24:48 +0000
committerAndrew Haley <aph@gcc.gnu.org>2016-09-30 16:24:48 +0000
commit07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch)
tree3f22b3241c513ad168c8353805614ae1249410f4 /libjava/gnu/gcj/convert/Input_UnicodeBig.java
parenteae993948bae8b788c53772bcb9217c063716f93 (diff)
downloadgcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip
gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz
gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
Diffstat (limited to 'libjava/gnu/gcj/convert/Input_UnicodeBig.java')
-rw-r--r--libjava/gnu/gcj/convert/Input_UnicodeBig.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/libjava/gnu/gcj/convert/Input_UnicodeBig.java b/libjava/gnu/gcj/convert/Input_UnicodeBig.java
deleted file mode 100644
index c8da2b9..0000000
--- a/libjava/gnu/gcj/convert/Input_UnicodeBig.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Copyright (C) 2004 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package gnu.gcj.convert;
-
-public class Input_UnicodeBig extends BytesToUnicode
-{
- /** 0, 8, or 16 bits of a partially constructed character. */
- char partial;
- /** How many bytes of partial are valid. */
- int partial_count;
-
- public String getName() { return "UnicodeBig"; }
-
- public int read (char[] outbuffer, int outpos, int count)
- {
- int origcount = count;
- for (;;)
- {
- if (partial_count == 2)
- {
- if (count == 0)
- break;
- if (partial == 0xFEFF)
- ; // drop byte order mark
- // else if (partial >= 0xFFFe) ERROR;
- else
- outbuffer[outpos++] = partial;
- count--;
- partial_count = 0;
- partial = 0;
- }
- else if (inpos >= inlength)
- break;
- else
- {
- int b = inbuffer[inpos++] & 0xFF;
- partial = (char) (((int) partial << 8) + b);
- partial_count++;
- }
- }
- return origcount - count;
- }
-}