"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/datamatrix/encoder/TextEncoder.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

TextEncoder.java  (zxing-zxing-3.4.1):TextEncoder.java  (zxing-zxing-3.5.0)
skipping to change at line 62 skipping to change at line 62
sb.append((char) (c - 58 + 15)); sb.append((char) (c - 58 + 15));
return 2; return 2;
} }
if (c >= '[' && c <= '_') { if (c >= '[' && c <= '_') {
sb.append('\1'); //Shift 2 Set sb.append('\1'); //Shift 2 Set
sb.append((char) (c - 91 + 22)); sb.append((char) (c - 91 + 22));
return 2; return 2;
} }
if (c == '`') { if (c == '`') {
sb.append('\2'); //Shift 3 Set sb.append('\2'); //Shift 3 Set
sb.append((char) (c - 96)); sb.append((char) 0); // '`' - 96 == 0
return 2; return 2;
} }
if (c <= 'Z') { if (c <= 'Z') {
sb.append('\2'); //Shift 3 Set sb.append('\2'); //Shift 3 Set
sb.append((char) (c - 65 + 1)); sb.append((char) (c - 65 + 1));
return 2; return 2;
} }
if (c <= 127) { if (c <= 127) {
sb.append('\2'); //Shift 3 Set sb.append('\2'); //Shift 3 Set
sb.append((char) (c - 123 + 27)); sb.append((char) (c - 123 + 27));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)