@@ -918,27 +918,28 @@ protected void initializeConverter(int myOptions) {
918
918
}
919
919
}
920
920
}
921
- /* EBCDIC swap LF<->NL--------------------------------------------------------------------------------*/
922
- /*
923
- * This code modifies a standard EBCDIC<->Unicode mappling table for
924
- * OS/390 (z/OS) Unix System Services (Open Edition).
925
- * The difference is in the mapping of Line Feed and New Line control codes:
926
- * Standard EBDIC maps
927
- *
928
- * <U000A> \x25 |0
929
- * <U0085> \x15 |0
930
- *
931
- * but OS/390 USS EBCDIC swaps the control codes for LF and NL,
932
- * mapping
933
- *
934
- * <U000A> \x15 |0
935
- * <U0085> \x25 |0
936
- *
937
- * This code modifies a loaded standard EBCDIC<->Unicode mapping table
938
- * by copying it into allocated memory and swapping the LF and NL values.
939
- * It allows to support the same EBCDIC charset in both version without
940
- * duplicating the entire installed table.
941
- */
921
+
922
+ // EBCDIC swap LF<->NL
923
+ //
924
+ // This code modifies a standard EBCDIC<->Unicode mappling table for
925
+ // OS/390 (z/OS) Unix System Services (Open Edition).
926
+ // The difference is in the mapping of Line Feed and New Line control codes:
927
+ // Standard EBDIC maps
928
+ //
929
+ // <U000A> \x25 |0
930
+ // <U0085> \x15 |0
931
+ //
932
+ // but OS/390 USS EBCDIC swaps the control codes for LF and NL,
933
+ // mapping
934
+ //
935
+ // <U000A> \x15 |0
936
+ // <U0085> \x25 |0
937
+ //
938
+ // This code modifies a loaded standard EBCDIC<->Unicode mapping table
939
+ // by copying it into allocated memory and swapping the LF and NL values.
940
+ // It allows to support the same EBCDIC charset in both version without
941
+ // duplicating the entire installed table.
942
+
942
943
/* standard EBCDIC codes */
943
944
private static final short EBCDIC_LF = 0x0025 ;
944
945
private static final short EBCDIC_NL = 0x0015 ;
@@ -1415,13 +1416,13 @@ static int FROM_U(CharBuffer stage12, CharBuffer stage3, int s1Index, int c) {
1415
1416
static final int FROM_U_RESERVED_MASK = 0x60000000 ;
1416
1417
private static final int FROM_U_DATA_MASK = 0xffffff ;
1417
1418
1418
- /* special value for "no mapping" to <subchar1> (impossible roundtrip to 0 bytes, value 01) */
1419
+ // special value for "no mapping" to <subchar1> (impossible roundtrip to 0 bytes, value 01)
1419
1420
static final int FROM_U_SUBCHAR1 = 0x80000001 ;
1420
1421
1421
- /* at most 3 bytes in the lower part of the value */
1422
+ // at most 3 bytes in the lower part of the value
1422
1423
private static final int FROM_U_MAX_DIRECT_LENGTH = 3 ;
1423
1424
1424
- /* maximum number of indexed bytes */
1425
+ // maximum number of indexed bytes
1425
1426
static final int MAX_BYTES = 0x1f ;
1426
1427
1427
1428
static boolean FROM_U_IS_PARTIAL (int value ) {
@@ -1477,7 +1478,7 @@ private static int GET_MAX_BYTES_PER_UCHAR(ByteBuffer indexes) {
1477
1478
return indexes .getInt (EXT_COUNT_BYTES ) & 0xff ;
1478
1479
}
1479
1480
1480
- /*
1481
+ /**
1481
1482
* @return index of the UChar, if found; else <0
1482
1483
*/
1483
1484
static int findFromU (CharBuffer fromUSection , int length , char u ) {
@@ -1525,7 +1526,7 @@ static int findFromU(CharBuffer fromUSection, int length, char u) {
1525
1526
}
1526
1527
}
1527
1528
1528
- /*
1529
+ /**
1529
1530
* @return lookup value for the byte, if found; else 0
1530
1531
*/
1531
1532
static int findToU (IntBuffer toUSection , int length , short byt ) {
@@ -1870,10 +1871,9 @@ private CoderResult toUWriteCodePoint(int c, CharBuffer target, IntBuffer offset
1870
1871
return cr ;
1871
1872
}
1872
1873
1873
- /*
1874
- * Input sequence: cnv->toUBytes[0..length[ @return if(U_FAILURE) return the length (toULength, byteIndex) for
1875
- * the input else return 0 after output has been written to the target
1876
- */
1874
+ // Input sequence: cnv->toUBytes[0..length[ @return if(U_FAILURE) return the length (toULength, byteIndex) for
1875
+ // the input else return 0 after output has been written to the target
1876
+ //
1877
1877
private int toU (int length , ByteBuffer source , CharBuffer target , IntBuffer offsets , int sourceIndex ,
1878
1878
boolean flush , CoderResult [] cr ) {
1879
1879
// ByteBuffer cx;
@@ -3875,7 +3875,7 @@ private CoderResult writeFromU(int value, ByteBuffer target, IntBuffer offsets,
3875
3875
return fromUWriteBytes (this , resultArray , resultArrayIndex , length , target , offsets , srcIndex );
3876
3876
}
3877
3877
3878
- /*
3878
+ /**
3879
3879
* @return if(U_FAILURE) return the code point for cnv->fromUChar32 else return 0 after output has been written
3880
3880
* to the target
3881
3881
*/
0 commit comments