Class ExporterUtils
java.lang.Object
org.harctoolbox.irscrutinizer.exporter.ExporterUtils
Static support functions intended to be called from XSLT transformations.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
and
(int x, int y) static long
and
(long x, long y) static int
or
(int x, int y) static long
or
(long x, long y) static String
processBitFields
(boolean complement, boolean reverse, int data, int length, int chop) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13, boolean complement14, boolean reverse14, int data14, int length14, int chop14) static String
processBitFields
(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13, boolean complement14, boolean reverse14, int data14, int length14, int chop14, boolean complement15, boolean reverse15, int data15, int length15, int chop15) static String
rc5Data
(int D, int F, int T) static int
reverse
(int n, int bits) static long
reverse
(long n, long bits) static String
sixteenDigitHex
(long n) static String
sony12Data
(int D, int F) static String
sony15Data
(int D, int F) static String
sony20Data
(int D, int S, int F) static String
twoDigitHex
(int n) static String
twoDigitReverseHex
(int n) static int
xor
(int x, int y) static long
xor
(long x, long y)
-
Field Details
-
LONGFORMATTINGCODE
- See Also:
-
-
Method Details
-
sixteenDigitHex
-
processBitFields
public static String processBitFields(boolean complement, boolean reverse, int data, int length, int chop) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13, boolean complement14, boolean reverse14, int data14, int length14, int chop14) -
processBitFields
public static String processBitFields(boolean complement0, boolean reverse0, int data0, int length0, int chop0, boolean complement1, boolean reverse1, int data1, int length1, int chop1, boolean complement2, boolean reverse2, int data2, int length2, int chop2, boolean complement3, boolean reverse3, int data3, int length3, int chop3, boolean complement4, boolean reverse4, int data4, int length4, int chop4, boolean complement5, boolean reverse5, int data5, int length5, int chop5, boolean complement6, boolean reverse6, int data6, int length6, int chop6, boolean complement7, boolean reverse7, int data7, int length7, int chop7, boolean complement8, boolean reverse8, int data8, int length8, int chop8, boolean complement9, boolean reverse9, int data9, int length9, int chop9, boolean complement10, boolean reverse10, int data10, int length10, int chop10, boolean complement11, boolean reverse11, int data11, int length11, int chop11, boolean complement12, boolean reverse12, int data12, int length12, int chop12, boolean complement13, boolean reverse13, int data13, int length13, int chop13, boolean complement14, boolean reverse14, int data14, int length14, int chop14, boolean complement15, boolean reverse15, int data15, int length15, int chop15) -
reverse
public static int reverse(int n, int bits) -
reverse
public static long reverse(long n, long bits) -
xor
public static int xor(int x, int y) -
xor
public static long xor(long x, long y) -
or
public static int or(int x, int y) -
or
public static long or(long x, long y) -
and
public static int and(int x, int y) -
and
public static long and(long x, long y) -
twoDigitHex
-
twoDigitReverseHex
-
rc5Data
-
sony12Data
-
sony15Data
-
sony20Data
-