/openjdk7/jdk/src/share/classes/sun/io/ |
H A D | ByteToCharEUC.java | 81 int byte1; 89 byte1 = input[byteOff]; 90 if (byte1 < 0) 91 byte1 += 256; 95 if (byte1 == SS2 || // no general support 96 byte1 == SS3 ) { // for g2 or g3 101 if ( byte1 <= 0x9f ) // < 0x9f has its own table 102 outputChar = byteToCharTable.charAt(byte1); 104 if (byte1 < 0xa1 || byte1 > [all...] |
H A D | ByteToCharCp33722.java | 100 int byte1; 108 byte1 = input[byteOff]; 109 if (byte1 < 0) 110 byte1 += 256; 114 if (byte1 == SS2) // drop into G2 set 116 else if (byte1 == SS3) // drop into G3 set 118 else if ( byte1 <= 0x9f ) // valid single byte 119 outputChar = byteToCharTable.charAt(byte1); 120 else if (byte1 < 0xa1 || byte1 > [all...] |
H A D | ByteToCharCp964.java | 105 int byte1; 113 byte1 = input[byteOff]; 114 if (byte1 < 0) 115 byte1 += 256; 119 if (byte1 == SS2) 121 else if (byte1 == SS3) { 125 else if ( byte1 <= 0x9f ) // valid single byte 126 outputChar = byteToCharTable.charAt(byte1); 127 else if (byte1 < 0xa1 || byte1 > [all...] |
H A D | ByteToCharEUC_JP_LINUX.java | 77 protected char getUnicode(int byte1, int byte2) { argument 78 if (byte1 == 0x8E) { 83 if (((byte1 < 0) || (byte1 > index1.length)) 87 int n = (index1[byte1 - 0x80] & 0xf) * (end - start + 1) 89 return index2[index1[byte1 - 0x80] >> 4].charAt(n); 120 int byte1, byte2; 123 byte1 = input[byteOff]; 126 byte1 = savedByte; 131 outputChar = convSingleByte(byte1); [all...] |
H A D | ByteToCharEUC_JP_Solaris.java | 87 protected char getUnicode(int byte1, int byte2) { argument 88 if (byte1 == 0x8E) { 93 if (((byte1 < 0) || (byte1 > j0208Index1.length)) 97 char result = super.getUnicode(byte1, byte2); 101 int n = (j0208Index1[byte1 - 0x80] & 0xf) * (end - start + 1) 103 return j0208Index2[j0208Index1[byte1 - 0x80] >> 4].charAt(n); 107 protected char decode0212(int byte1, int byte2) { argument 108 return j0212Decoder.getUnicode(byte1, byte2); 139 int byte1, byte [all...] |
H A D | ByteToCharEUC_JP.java | 75 protected char getUnicode(int byte1, int byte2) { argument 76 if (byte1 == 0x8E) { 81 if (((byte1 < 0) || (byte1 > index1.length)) 85 int n = (index1[byte1 - 0x80] & 0xf) * (end - start + 1) 87 return index2[index1[byte1 - 0x80] >> 4].charAt(n); 90 protected char decode0212(int byte1, int byte2) { argument 91 return bcJIS0212.getUnicode(byte1, byte2); 122 int byte1, byte2; 125 byte1 [all...] |
H A D | ByteToCharDoubleByte.java | 109 int byte1, byte2; 112 byte1 = input[byteOff]; 115 byte1 = savedByte; 120 outputChar = convSingleByte(byte1); 126 savedByte = (byte) byte1; 131 byte1 &= 0xff; 135 outputChar = getUnicode(byte1, byte2); 179 protected char getUnicode(int byte1, int byte2) { argument 182 if (((byte1 < 0) || (byte1 > index [all...] |
H A D | ByteToCharEUC2.java | 87 int byte1; 93 byte1 = input[byteOff] & 0xff; 96 if (byte1 == SS2 || // no general support 97 byte1 == SS3 ) { // for g2 or g3 101 if ( byte1 <= 0x9f ) // < 0x9f has its own table 102 outputChar = decodeSingle(byte1); 104 if (byte1 < 0xa1 || byte1 > 0xfe) { // byte within range? 108 firstByte = byte1; 114 if ( byte1 < [all...] |
H A D | ByteToCharBig5_HKSCS.java | 46 protected char decodeDouble(int byte1, int byte2) { argument 47 char c = dec.decodeDouble(byte1, byte2); 49 c = dec.decodeBig5(byte1, byte2);
|
H A D | ByteToCharMS950_HKSCS.java | 45 protected char decodeDouble(int byte1, int byte2) { argument 46 char c = dec.decodeDouble(byte1, byte2); 48 c = dec.decodeBig5(byte1, byte2);
|
H A D | ByteToCharDBCS_EBCDIC.java | 89 int byte1, byte2; 92 byte1 = input[byteOff] & 0xff; 95 byte1 = savedByte; 100 if (byte1 == SO) { 115 if (byte1 == SI) { 131 outputChar = decodeSingle(byte1); 137 if (byte1 < 0x40 || byte1 > 0xfe) { 146 savedByte = byte1; 157 if ((byte1 ! [all...] |
H A D | ByteToCharDBCS_ASCII.java | 81 int byte1; 84 byte1 = input[byteOff] & 0xff; 87 byte1 = savedByte; 92 outputChar = decodeSingle(byte1); 96 savedByte = byte1; 102 outputChar = decodeDouble(byte1, input[byteOff+inputSize] & 0xff);
|
H A D | ByteToCharISO2022JP.java | 117 int byte1, byte2, byte3; 126 byte1 = input[readOff] & 0xFF; 129 if ((byte1 & (byte)0x80) != 0){ 135 while (byte1 == 0x1b || byte1 == 0x0e || byte1 == 0x0f) { 136 if (byte1 == 0x1b){ // ESC 140 savedBytes[0] = (byte)byte1; 143 savedBytes[0] = (byte)byte1; 194 byte1 [all...] |
H A D | ByteToCharUTF8.java | 64 int byte1, byte2, byte3, byte4; 90 byte1 = input[byteOff++] & 0xff; 92 if ((byte1 & 0x80) == 0){ 93 outputChar[0] = (char)byte1; 95 } else if ((byte1 & 0xe0) == 0xc0) { 98 savedBytes[0] = (byte)byte1; 107 outputChar[0] = (char)(((byte1 & 0x1f) << 6) | (byte2 & 0x3f)); 109 } else if ((byte1 & 0xf0) == 0xe0){ 111 savedBytes[0] = (byte)byte1; 127 outputChar[0] = (char)(((byte1 [all...] |
H A D | ByteToCharGB18030.java | 128 int byte1 = 0 , byte2 = 0, byte3 = 0, byte4 = 0; 136 byte1 = input[readOff++] & 0xFF; 139 if ((byte1 & (byte)0x80) == 0){ // US-ASCII range 140 outputChar = (char)byte1; 144 else if (byte1 < 0x81 || byte1 > 0xfe) { 158 savedBytes[0]=(byte)byte1; 176 savedBytes[0] = (byte)byte1; 181 savedBytes[0] = (byte)byte1; 212 output[charOff++] = (char)(byte1); [all...] |
/openjdk7/jdk/test/sun/nio/cs/OLD/ |
H A D | DBCSDecoderMapping.java | 68 protected char decodeDouble(int byte1, int byte2) { argument 69 if (((byte1 < 0) || (byte1 > index1.length)) 73 int n = (index1[byte1] & 0xf) * (end - start + 1) + (byte2 - start); 74 return index2[index1[byte1] >> 4].charAt(n);
|
H A D | SimpleEUCDecoder.java | 68 int byte1, byte2; 72 byte1 = sa[sp] & 0xff; 74 if ( byte1 <= 0x9f ) { // < 0x9f has its own table (G0) 75 if (byte1 == SS2 || byte1 == SS3 ) { 79 outputChar = byteToCharTable.charAt(byte1); 80 } else if (byte1 < 0xa1 || byte1 > 0xfe) { // invalid range? 91 outputChar = mappingTableG1.charAt(((byte1 - 0xa1) * 94) + byte2 - 0xa1); 115 int byte1, byte [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/cs/ext/ |
H A D | JIS_X_0212_MS5022X_Decoder.java | 42 protected char decodeDouble(int byte1, int byte2) { argument 43 if (((byte1 < 0) || (byte1 > _index1.length)) 46 int n = (_index1[byte1] & 0xf)*(_end - _start + 1) + (byte2 - _start); 47 char unicode = _index2[_index1[byte1] >> 4].charAt(n); 49 return (super.decodeDouble(byte1, byte2));
|
H A D | IBM33722.java | 136 int byte1, byte2; 139 byte1 = sa[sp] & 0xff; 141 if (byte1 == SS2) { 145 byte1 = sa[sp + 1] & 0xff; 147 if ( byte1 < 0xa1 || byte1 > 0xfe) { //valid first byte for G2 150 outputChar = mappingTableG2.charAt(byte1 - 0xa1); 151 } else if(byte1 == SS3 ) { //G3 155 byte1 = sa[sp + 1] & 0xff; 158 if ( byte1 < [all...] |
H A D | IBM964.java | 137 int byte1, byte2; 140 byte1 = sa[sp] & 0xff; 142 if (byte1 == SS2) { 146 byte1 = sa[sp + 1] & 0xff; 148 if ( byte1 == 0xa2) 150 else if ( byte1 == 0xac) 152 else if ( byte1 == 0xad) 156 byte1 = sa[sp + 2] & 0xff; 157 if ( byte1 < 0xa1 || byte1 > [all...] |
H A D | EUC_JP_Open.java | 94 protected char decode0212(int byte1, int byte2) { argument 95 return decodeMappingJ0212.decodeDouble(byte1, byte2); 99 protected char decodeDouble(int byte1, int byte2) { argument 100 if (byte1 == 0x8e) { 104 if (((byte1 < 0) 105 || (byte1 > j0208Index1.length)) 110 char result = super.decodeDouble(byte1, byte2); 114 int n = (j0208Index1[byte1 - 0x80] & 0xf) * 117 return j0208Index2[j0208Index1[byte1 - 0x80] >> 4].charAt(n);
|
/openjdk7/jdk/src/share/instrument/ |
H A D | EncodingSupport.c | 101 unsigned byte1; local 103 byte1 = (unsigned char)string[i]; 106 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ 107 if ( byte1 == 0 ) { 113 new_string[j++] = byte1; 115 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ 116 new_string[j++] = byte1; 118 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ 119 new_string[j++] = byte1; 122 } else if ( (byte1 [all...] |
/openjdk7/jdk/src/share/classes/java/util/prefs/ |
H A D | Base64.java | 67 int byte1 = a[inCursor++] & 0xff; 70 result.append(intToAlpha[(byte0 << 4)&0x3f | (byte1 >> 4)]); 71 result.append(intToAlpha[(byte1 << 2)&0x3f | (byte2 >> 6)]); 84 int byte1 = a[inCursor++] & 0xff; 85 result.append(intToAlpha[(byte0 << 4)&0x3f | (byte1 >> 4)]); 86 result.append(intToAlpha[(byte1 << 2)&0x3f]);
|
/openjdk7/jdk/src/share/npt/ |
H A D | utf.c | 204 unsigned byte1; local 206 byte1 = (unsigned char)string[i]; 209 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ 210 if ( byte1 == 0 ) { 216 newString[j++] = byte1; 218 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ 219 newString[j++] = byte1; 221 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ 222 newString[j++] = byte1; 225 } else if ( (byte1 268 unsigned byte1, byte2, byte3, byte4, byte5, byte6; local 335 unsigned byte1, byte2, byte3, byte4, byte5, byte6; local [all...] |
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | EUC_TW_OLD.java | 10555 protected char convToUnicode(byte byte1, byte byte2, String table) argument 10559 if ((byte1 & 0xff) < 0xa1 || (byte2 & 0xff) < 0xa1 || 10560 (byte1 & 0xff) > 0xfe || (byte2 & 0xff) > 0xfe) 10562 index = (((byte1 & 0xff) - 0xa1) * 94) + (byte2 & 0xff) - 0xa1; 10568 protected char[] convToSurrogate(byte byte1, byte byte2, String table) argument 10573 if ((byte1 & 0xff) < 0xa1 || (byte2 & 0xff) < 0xa1 || 10574 (byte1 & 0xff) > 0xfe || (byte2 & 0xff) > 0xfe) 10576 index = (((byte1 & 0xff) - 0xa1) * 94) + (byte2 & 0xff) - 0xa1; 10604 byte byte1 = sa[sp]; 10607 if ((byte1 [all...] |