mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 03:26:56 -04:00
Replace WARN_ZPL_COMPAT with GS1NOCHECK_MODE
This commit is contained in:
parent
7cc2095d3c
commit
2e84fd5157
21 changed files with 1157 additions and 707 deletions
|
@ -138,6 +138,7 @@ static void test_examples(int index, int generate, int debug) {
|
|||
|
||||
struct item {
|
||||
int symbology;
|
||||
int input_mode;
|
||||
int option_1;
|
||||
char *data;
|
||||
char *composite;
|
||||
|
@ -150,7 +151,7 @@ static void test_examples(int index, int generate, int debug) {
|
|||
};
|
||||
// Verified manually against GS1 General Specifications 21.0.1 (GGS) and ISO/IEC 24723:2010, with noted exceptions, and verified via bwipp_dump.ps against BWIPP
|
||||
struct item data[] = {
|
||||
/* 0*/ { BARCODE_DBAR_OMNSTK_CC, 1, "0401234567890", "[17]050101[10]ABC123", 0, 11, 56, "GSS Figure 5.1-5. GS1 DataBar Stacked Omnidirectional barcode with a Composite Component",
|
||||
/* 0*/ { BARCODE_DBAR_OMNSTK_CC, -1, 1, "0401234567890", "[17]050101[10]ABC123", 0, 11, 56, "GSS Figure 5.1-5. GS1 DataBar Stacked Omnidirectional barcode with a Composite Component",
|
||||
"01101100110101110001001100001000000110100111011110101001"
|
||||
"01101101110110001100010100001100001000010110011100101001"
|
||||
"01101101100111000101110001101001100011111010011101101001"
|
||||
|
@ -162,16 +163,16 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00000101010101010101010101010101010101010101010000000000"
|
||||
"00001000110000101010000000101010111011001111000000000000"
|
||||
"10100111001111010101111111000001000100110000110101000000"
|
||||
},
|
||||
/* 1*/ { BARCODE_DBAR_LTD_CC, 1, "1311234567890", "[17]010615[10]A123456", 0, 6, 79, "GGS Figure 5.11.2-1. (24723:2010 Figure 1) GS1 DataBar Limited Composite symbol with CC-A",
|
||||
},
|
||||
/* 1*/ { BARCODE_DBAR_LTD_CC, -1, 1, "1311234567890", "[17]010615[10]A123456", 0, 6, 79, "GGS Figure 5.11.2-1. (24723:2010 Figure 1) GS1 DataBar Limited Composite symbol with CC-A",
|
||||
"0111100010110110001010011000111110100110011101110100111100111011101001101000000"
|
||||
"0100111110001101001010111000111101111010111101001111011100111011101011101000000"
|
||||
"0100110011010000001010110000111001000110111101111011110010100011101011001000000"
|
||||
"0111100010101000001010010000101110110111111001110011001110010011101010001000000"
|
||||
"0000001100000101010011001110101011010100110010101111000101100110100111000000000"
|
||||
"0101110011111010101100110001010100101011001101010000111010011001011000010100000"
|
||||
},
|
||||
/* 2*/ { BARCODE_GS1_128_CC, 3, "[01]03812345678908", "[10]ABCD123456[410]3898765432108", 0, 7, 154, "GGS Figure 5.11.2-2. GS1-128 Composite symbol with CC-C **NOT SAME** as zint uses encodation '10', same if '0' forced",
|
||||
},
|
||||
/* 2*/ { BARCODE_GS1_128_CC, -1, 3, "[01]03812345678908", "[10]ABCD123456[410]3898765432108", 0, 7, 154, "GGS Figure 5.11.2-2. GS1-128 Composite symbol with CC-C **NOT SAME** as zint uses encodation '10', same if '0' forced",
|
||||
"1111111101010100011110101011110000111101011001111101110111110111010010000010000100010110010000101100001111011110110011011110101001111000111111101000101001"
|
||||
"1111111101010100011111101010001110100001000111101001100101110010000011100001011000100100100111110110001011100001011111011111101010111000111111101000101001"
|
||||
"1111111101010100011101010011111100110001111010001101000101011110000010001111101100010111101101111101001001011000111110011101010001111110111111101000101001"
|
||||
|
@ -179,8 +180,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1111111101010100011101011100001100101000111111011101011110001001111011111011001000100111100111011101001101101111001000011101011100110000111111101000101001"
|
||||
"0000000001011000110000101000100110010011011011001110110100001100010010001010001001110111101001100100100001011100110110100001000100100001001001110001010000"
|
||||
"0000000110100111001111010111011001101100100100110001001011110011101101110101110110001000010110011011011110100011001001011110111011011110110110001110101100"
|
||||
},
|
||||
/* 3*/ { BARCODE_GS1_128_CC, 3, "[01]93812345678901", "[10]ABCD123456[410]3898765432108", 0, 7, 154, "24723:2010 Figure 2 GS1-128 Composite symbol with 5-row CC-C **NOT SAME** ditto as above",
|
||||
},
|
||||
/* 3*/ { BARCODE_GS1_128_CC, -1, 3, "[01]93812345678901", "[10]ABCD123456[410]3898765432108", 0, 7, 154, "24723:2010 Figure 2 GS1-128 Composite symbol with 5-row CC-C **NOT SAME** ditto as above",
|
||||
"1111111101010100011110101011110000111101011001111101110111110111010010000010000100010110010000101100001111011110110011011110101001111000111111101000101001"
|
||||
"1111111101010100011111101010001110100001000111101001100101110010000011100001011000100100100111110110001011100001011111011111101010111000111111101000101001"
|
||||
"1111111101010100011101010011111100110001111010001101000101011110000010001111101100010111101101111101001001011000111110011101010001111110111111101000101001"
|
||||
|
@ -188,8 +189,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1111111101010100011101011100001100101000111111011101011110001001111011111011001000100111100111011101001101101111001000011101011100110000111111101000101001"
|
||||
"0000000001011000110000101000100110010011010111000010110100001100010010001010001001110111101001100100100001001100100110100001000100001001001001110001010000"
|
||||
"0000000110100111001111010111011001101100101000111101001011110011101101110101110110001000010110011011011110110011011001011110111011110110110110001110101100"
|
||||
},
|
||||
/* 4*/ { BARCODE_EANX_CC, 1, "331234567890", "[21]1234-abcd", 0, 7, 99, "GGS Figure 5.11.8-1. EAN-13 symbol with a four-column CC-A component (note [21] not [99])",
|
||||
},
|
||||
/* 4*/ { BARCODE_EANX_CC, -1, 1, "331234567890", "[21]1234-abcd", 0, 7, 99, "GGS Figure 5.11.8-1. EAN-13 symbol with a four-column CC-A component (note [21] not [99])",
|
||||
"110110111011010000100000110100110011101100001001110100100001011001100001100111000110001011011000101"
|
||||
"110110110011000110111100010111011001110000101001100100100000010111101001101011100010000011001000101"
|
||||
"110110100010011010001110000111111010001100101001100110111111010001101001010000011011111011101000101"
|
||||
|
@ -197,8 +198,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101011110100110010011011010000100111010110001010101010000100010010010001110100111001010000101010"
|
||||
},
|
||||
/* 5*/ { BARCODE_EANX_CC, 1, "331234567890", "[99]1234-abcd", 0, 7, 99, "24723:2010 Figure 5 An EAN-13 composite symbol (with CC-A)",
|
||||
},
|
||||
/* 5*/ { BARCODE_EANX_CC, -1, 1, "331234567890", "[99]1234-abcd", 0, 7, 99, "24723:2010 Figure 5 An EAN-13 composite symbol (with CC-A)",
|
||||
"110110111011100110111011110100010100000010001001110100111011010110000001100110010000100011011000101"
|
||||
"110110110011100010011101100111110001000101101001100100100001101011111101101011100010000011001000101"
|
||||
"110110100010001011101111110110011100100011101001100110100000011101011001011110001001000011101000101"
|
||||
|
@ -206,8 +207,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101011110100110010011011010000100111010110001010101010000100010010010001110100111001010000101010"
|
||||
},
|
||||
/* 6*/ { BARCODE_UPCA_CC, 2, "61414101234", "[91]abcdefghijklmnopqrstuvwxyz", 0, 14, 99, "GGS Figure 5.11.8-2. UPC-A symbol with a four-column CC-B component **NOT SAME** (using [91] not [10] as length > 20 max for [10])",
|
||||
},
|
||||
/* 6*/ { BARCODE_UPCA_CC, -1, 2, "61414101234", "[91]abcdefghijklmnopqrstuvwxyz", 0, 14, 99, "GGS Figure 5.11.8-2. UPC-A symbol with a four-column CC-B component **NOT SAME** (using [91] not [10] as length > 20 max for [10])",
|
||||
"110001001010000001110010110110011111101100101001111010100100101111000001110101001111110011000100101"
|
||||
"111001001011101110101000000111101101000111001011111010100011000110000101110011010000110011100100101"
|
||||
"111101001011110110001101000111101000100000101011110010101001111001000001011111010001110011110100101"
|
||||
|
@ -222,8 +223,24 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101010111100110010100011001100101000110011001010101110010110011011011001000010101110010000101010"
|
||||
},
|
||||
/* 7*/ { BARCODE_EANX_CC, -1, "1234567", "[21]A12345678", 0, 8, 72, "GGS Figure 5.11.8-3. (24723:2010 Figure 4) EAN-8 symbol with a three-column CC-A",
|
||||
},
|
||||
/* 7*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, 2, "61414101234", "[10]abcdefghijklmnopqrstuvwxyz", 0, 14, 99, "GGS Figure 5.11.8-2. UPC-A symbol with a four-column CC-B component **NOT SAME** as zint uses encodation '10', same if '0' forced",
|
||||
"110001001010000001110010110110011111101100101001111010111000101011111101011010001110000011000100101"
|
||||
"111001001010110011100011000100010000100000101011111010111000111010010001011000111101110011100100101"
|
||||
"111101001011000001000111010111010000110100001011110010111011001111001101110101100000010011110100101"
|
||||
"111101011010001000100011110101111101111011101011110110100011111011001001000001010011110011110101101"
|
||||
"111101010010111011100001000101000110000110001001110110101001100110000001000100000010100011110101001"
|
||||
"111001010010111110110011110100010111111011101001110100110100111000001001101011100010000011100101001"
|
||||
"111011010011101000101111110100111100010010001001100100111000010111110101110100010111111011101101001"
|
||||
"111010010011010010001100000100001011100011101001100110100111101111010001110011100010100011101001001"
|
||||
"111010011011110010100100000110000001011100101001000110101101011111100001110010011101100011101001101"
|
||||
"111010111010111000100000110111110110111100101001000010101110000011011101011100001101110011101011101"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101010111100110010100011001100101000110011001010101110010110011011011001000010101110010000101010"
|
||||
},
|
||||
/* 8*/ { BARCODE_EANX_CC, -1, -1, "1234567", "[21]A12345678", 0, 8, 72, "GGS Figure 5.11.8-3. (24723:2010 Figure 4) EAN-8 symbol with a three-column CC-A",
|
||||
"101001111000001001010011000111110101110111101001101001111110011101001101"
|
||||
"111110010011100101010111000101110011011100001111110100011001011101011101"
|
||||
"110011001000010001010110000101000001000010001001000110110000011101011001"
|
||||
|
@ -232,8 +249,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000100000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000010000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000010100110010010011011110101000110101010011101010000100010011100101010"
|
||||
},
|
||||
/* 8*/ { BARCODE_UPCE_CC, 1, "0121230", "[15]021231", 0, 9, 55, "GGS Figure 5.11.8-4. (24723:2010 Figure 3) UPC-E symbol with a two-column CC-A",
|
||||
},
|
||||
/* 9*/ { BARCODE_UPCE_CC, -1, 1, "0121230", "[15]021231", 0, 9, 55, "GGS Figure 5.11.8-4. (24723:2010 Figure 3) UPC-E symbol with a two-column CC-A",
|
||||
"1101100110111010011111010001100111100010110011110101001"
|
||||
"1101101110110010010000110001101000011011100011100101001"
|
||||
"1101101100111101001000000101000101111000010011101101001"
|
||||
|
@ -243,15 +260,15 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010110011001001100110010011011011110101001110101010"
|
||||
},
|
||||
/* 9*/ { BARCODE_DBAR_OMN_CC, 1, "0361234567890", "[11]990102", 0, 5, 100, "GGS Figure 5.11.8-5. (24723:2010 Figure 8) GS1 DataBar Omnidirectional symbol with a four-column CC-A",
|
||||
},
|
||||
/* 10*/ { BARCODE_DBAR_OMN_CC, -1, 1, "0361234567890", "[11]990102", 0, 5, 100, "GGS Figure 5.11.8-5. (24723:2010 Figure 8) GS1 DataBar Omnidirectional symbol with a four-column CC-A",
|
||||
"1101101110110000101000110001111001010111100010011101001110011101100110011001001100111000110110001010"
|
||||
"1101101100110111011111001001000011010111111010011001001101000000111010010010111111001110110010001010"
|
||||
"1101101000110010010111110001011001101111000010011001101111010011110010010000011001011100111010001010"
|
||||
"0000000000010110001110100000000101001011010111111011001101010000011010000000010100101000110011110000"
|
||||
"0000010011101001110001001111111000010100101000000100110010101111100101111111100011010111001100001101"
|
||||
},
|
||||
/*10*/ { BARCODE_DBAR_STK_CC, 1, "0341234567890", "[17]010200", 0, 9, 56, "GGS Figure 5.11.8-6. (24723:2010 Figure 6) GS1 DataBar Stacked symbol with a two-column CC-A",
|
||||
},
|
||||
/* 11*/ { BARCODE_DBAR_STK_CC, -1, 1, "0341234567890", "[17]010200", 0, 9, 56, "GGS Figure 5.11.8-6. (24723:2010 Figure 6) GS1 DataBar Stacked symbol with a two-column CC-A",
|
||||
"01101100110101110011100111101010000100001111011110101001"
|
||||
"01101101110110110001000010001110111101100100011100101001"
|
||||
"01101101100110100001111011001111110011010110011101101001"
|
||||
|
@ -261,8 +278,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"01001110100100011101111100000001011111010010100010000000"
|
||||
"00000011010111101010000010101010101001001101010000000000"
|
||||
"10101100111000010101111111110111000110110011100101000000"
|
||||
},
|
||||
/*11*/ { BARCODE_DBAR_LTD_CC, 2, "0351234567890", "[91]abcdefghijklmnopqrstuv", 0, 17, 88, "GGS Figure 5.11.8-7. (24723:2010 Figure 7) GS1 DataBar Limited symbol with a three-column CC-B **NOT SAME** (using [91] not [21] as length > 20 max for [21])",
|
||||
},
|
||||
/* 12*/ { BARCODE_DBAR_LTD_CC, -1, 2, "0351234567890", "[91]abcdefghijklmnopqrstuv", 0, 17, 88, "GGS Figure 5.11.8-7. (24723:2010 Figure 7) GS1 DataBar Limited symbol with a three-column CC-B **NOT SAME** (using [91] not [21] as length > 20 max for [21])",
|
||||
"1101110100111011111011101001011000100100000100001000101111101101001111011011101001000000"
|
||||
"1101100100111111010100111001011000110111101100001100101010000111100010011011001001000000"
|
||||
"1101100110100111100001001001010000110111011100101111001101110010001110011011001101000000"
|
||||
|
@ -280,23 +297,42 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1101000010111110100111010001011011100100101100011111001011111011100011011010000101000000"
|
||||
"0000000000000111101110001101000111010101011010100110010111010010011100011010111000000000"
|
||||
"0000000000101000010001110010111000101010100101011001101000101101100011100101000010100000"
|
||||
},
|
||||
/*12*/ { BARCODE_DBAR_EXP_CC, 1, "[01]93712345678904[3103]001234", "[91]1A2B3C4D5E", 0, 5, 151, "GGS Figure 5.11.8-8. (24723:2010 Figure 9) GS1 DataBar Expanded symbol with a four-column CC-A, same, verified against BWIPP and tec-it",
|
||||
},
|
||||
/* 13*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, 2, "0351234567890", "[21]abcdefghijklmnopqrstuv", 0, 17, 88, "GGS Figure 5.11.8-7. (24723:2010 Figure 7) GS1 DataBar Limited symbol with a three-column CC-B, same",
|
||||
"1101110100111011111011101001011000100100000100001000101111010011011111011011101001000000"
|
||||
"1101100100101111100101110001011000110111110001010011001111101100001001011011001001000000"
|
||||
"1101100110101111000110110001010000110111011100101111001101110010001110011011001101000000"
|
||||
"1101101110111010000010011101010001110111010000100111001000011001100100011011011101000000"
|
||||
"1101101100111101001000000101010001100100011011111001001111101100100010011011011001000000"
|
||||
"1101101000101111100111001101010011100101111100011101101000101000011110011011010001000000"
|
||||
"1101001000100011011010000001010011000100010000001000101101011100011110011010010001000000"
|
||||
"1101011000101001111110011101010111000111101001010000001110101100100000011010110001000000"
|
||||
"1101011100110100001001111101010110000101111000111011101011100000100110011010111001000000"
|
||||
"1101011110110001101100001101010010000100110011101100001101110001110011011010111101000000"
|
||||
"1101001110110100001110000101011010000100100111101000001011110010001111011010011101000000"
|
||||
"1101001100111001101011111001001010000111000101111100101011111011000001011010011001000000"
|
||||
"1101000100110100010001100001001011000111101001001111001001001111011110011010001001000000"
|
||||
"1101000110100010001111000101001011100111011011100000101111100110101000011010001101000000"
|
||||
"1101000010111110010111000101011011100100001001011110001011111000110100011010000101000000"
|
||||
"0000000000000111101110001101000111010101011010100110010111010010011100011010111000000000"
|
||||
"0000000000101000010001110010111000101010100101011001101000101101100011100101000010100000"
|
||||
},
|
||||
/* 14*/ { BARCODE_DBAR_EXP_CC, -1, 1, "[01]93712345678904[3103]001234", "[91]1A2B3C4D5E", 0, 5, 151, "GGS Figure 5.11.8-8. (24723:2010 Figure 9) GS1 DataBar Expanded symbol with a four-column CC-A, same, verified against BWIPP and tec-it",
|
||||
"0011011011101110011010011000011100011100110110100111010011010001000011000101101110011000001101100010100000000000000000000000000000000000000000000000000"
|
||||
"0011011011001101110111110100011010001111001100100110010010111111001001100100101111110011101100100010100000000000000000000000000000000000000000000000000"
|
||||
"0011011010001010111011111100011111011011110010100110011011000011010011110100001011001111101110100010100000000000000000000000000000000000000000000000000"
|
||||
"0000011011111011000100000000101001010000011101001110100110001100111101000010101000011010001110001000100001010000111001010000001010010111000110010110000"
|
||||
"0101100100000100111011111111000010101111100010110001011001110011000010111100000011100101110001110111011110101111000110001111110000101000111001101000010"
|
||||
},
|
||||
/*13*/ { BARCODE_GS1_128_CC, 1, "[01]03212345678906", "[21]A1B2C3D4E5F6G7H8", 0, 6, 145, "GGS Figure 5.11.8-9. (24723:2010 Figure 11) GS1-128 symbol with a four-column CC-A",
|
||||
},
|
||||
/* 15*/ { BARCODE_GS1_128_CC, -1, 1, "[01]03212345678906", "[21]A1B2C3D4E5F6G7H8", 0, 6, 145, "GGS Figure 5.11.8-9. (24723:2010 Figure 11) GS1-128 symbol with a four-column CC-A",
|
||||
"0000000000000000000001101001000110100001000001101101011110111110010010001101010000010010000011101110100010000111011001010000000000000000000000000"
|
||||
"0000000000000000000001101011000110101111001100001111010001101100010010000101111000011001101011100101100001000110011001010000000000000000000000000"
|
||||
"0000000000000000000001101011100100011001100111101011000101110000010110000101001100110011110011011110011001110110111001010000000000000000000000000"
|
||||
"0000000000000000000001101011110111000111011011001110010001011100010111000101011000011100110010000100000100010110111101010000000000000000000000000"
|
||||
"0010110001100001010001001100100110110110011100100011011000100100010100010011101111010011001001000010110011011100010100001000100010010011100010100"
|
||||
"1101001110011110101110110011011001001001100011011100100111011011101011101100010000101100110110111101001100100011101011110111011101101100011101011"
|
||||
},
|
||||
/*14*/ { BARCODE_DBAR_EXPSTK_CC, 1, "[01]00012345678905[10]ABCDEF", "[21]12345678", 0, 13, 102, "24723:2010 Figure 10 — A GS1 DataBar Expanded Stacked Composite symbol (with CC-A) **NOT SAME** bottom 1st and top 2nd linear row separators different; zint same as BWIPP and hard to see how figure in standard could be correct",
|
||||
},
|
||||
/* 16*/ { BARCODE_DBAR_EXPSTK_CC, -1, 1, "[01]00012345678905[10]ABCDEF", "[21]12345678", 0, 13, 102, "24723:2010 Figure 10 — A GS1 DataBar Expanded Stacked Composite symbol (with CC-A) **NOT SAME** bottom 1st and top 2nd linear row separators different; zint same as BWIPP and hard to see how figure in standard could be correct",
|
||||
"001101101110110100001000001101001100111011000010011101001000110011100110010100111011100000110110001010"
|
||||
"001101101100101111110100011001111101101000001010011001001011111011011110011010111000100000110010001010"
|
||||
"001101101000100101001111000001000111011101111010011001101011110110110000011010001011111000111010001010"
|
||||
|
@ -310,8 +346,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010000"
|
||||
"000000111001111101010100001010100101011111000010100000000000000000000000000000000000000000000000000000"
|
||||
"010111000110000010100011110000001010100000111101000100000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*15*/ { BARCODE_GS1_128_CC, 3, "[00]030123456789012340", "[02]13012345678909[37]24[10]1234567ABCDEFG", 0, 7, 174, "24723:2010 Figure 12 — A GS1-128 Composite symbol (with CC-C)",
|
||||
},
|
||||
/* 17*/ { BARCODE_GS1_128_CC, -1, 3, "[00]030123456789012340", "[02]13012345678909[37]24[10]1234567ABCDEFG", 0, 7, 174, "24723:2010 Figure 12 — A GS1-128 Composite symbol (with CC-C)",
|
||||
"111111110101010001111010101111000011010111011110000111011111011101001000001000010001011110101100111110111010010001110001000100011000011011111010100111110111111101000101001000"
|
||||
"111111110101010001111110101000111010000100111101000110011110101111101111010001010000011111000110010100111001011100011001001001111101100011111101010111000111111101000101001000"
|
||||
"111111110101010001010100011110000011001111100001010110100010111110001110111101011100011000001101011110101111001000000101100001011111101011101010001111110111111101000101001000"
|
||||
|
@ -319,8 +355,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"111111110101010001110101110000110011111010100011000100100001111000101110000001011001011110010110001100111100101101100001111011000110100011101011100110000111111101000101001000"
|
||||
"000000000101100011000010100010010011001101101100111001100100110001001000101000100111011110100110010010000100110010011000100100010011101011101000010001000100001010011100010100"
|
||||
"000000011010011100111101011101101100110010010011000110011011001110110111010111011000100001011001101101111011001101100111011011101100010100010111101110111011110101100011101011"
|
||||
},
|
||||
/*16*/ { BARCODE_DBAR_STK_CC, 1, "12345678901231", "[91]12345678901234567890", 0, 10, 56, "Example with CC-A 2 cols, 6 rows",
|
||||
},
|
||||
/* 18*/ { BARCODE_DBAR_STK_CC, -1, 1, "12345678901231", "[91]12345678901234567890", 0, 10, 56, "Example with CC-A 2 cols, 6 rows",
|
||||
"01100100010111100110100111001011101110001000011100101101"
|
||||
"01110100010110001011101000001000111010111110011000101101"
|
||||
"01110110010110101100111111001000111100001001011000101001"
|
||||
|
@ -331,8 +367,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"01001001110011100100011111111001010010001111011010000000"
|
||||
"00000110001101011010101010101010101101010000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*17*/ { BARCODE_DBAR_OMNSTK_CC, 1, "12345678901231", "[91]1234567890123456789012", 0, 13, 56, "Example with CC-A 2 cols, 7 rows",
|
||||
},
|
||||
/* 19*/ { BARCODE_DBAR_OMNSTK_CC, -1, 1, "12345678901231", "[91]1234567890123456789012", 0, 13, 56, "Example with CC-A 2 cols, 7 rows",
|
||||
"01110110110100100011111001101110001011100110011100010101"
|
||||
"01110010110111000110101111101001111100110010011000010101"
|
||||
"01100010110111010110011110001110001110110011011000110101"
|
||||
|
@ -346,8 +382,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00000101010101010101010101010101010101010101010000000000"
|
||||
"00000110000101111010010101010000111101011000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*18*/ { BARCODE_UPCE_CC, 1, "1234567", "[91]1234567890123456789012345678", 0, 12, 55, "Example with CC-A 3 cols, 8 rows",
|
||||
},
|
||||
/* 20*/ { BARCODE_UPCE_CC, -1, 1, "1234567", "[91]1234567890123456789012345678", 0, 12, 55, "Example with CC-A 3 cols, 8 rows",
|
||||
"1110111010100100011111001101110001011100110011011011101"
|
||||
"1110011010111000110101111101001111100110010011011011001"
|
||||
"1111011010111010110011110001110001110110011011011010001"
|
||||
|
@ -360,8 +396,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010010011011110101000110111001000010100100010101010"
|
||||
},
|
||||
/*19*/ { BARCODE_DBAR_STK_CC, 1, "12345678901231", "[91]1234567890123456789012345678901", 0, 13, 56, "Example with CC-A 2 cols, 9 rows",
|
||||
},
|
||||
/* 21*/ { BARCODE_DBAR_STK_CC, -1, 1, "12345678901231", "[91]1234567890123456789012345678901", 0, 13, 56, "Example with CC-A 2 cols, 9 rows",
|
||||
"01100011010100100011111001101110001011100110011010111101"
|
||||
"01100010010111000110101111101001111100110010011010011101"
|
||||
"01110010010111010110011110001110001110110011011010011001"
|
||||
|
@ -375,8 +411,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"01001001110011100100011111111001010010001111011010000000"
|
||||
"00000110001101011010101010101010101101010000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*20*/ { BARCODE_DBAR_OMNSTK_CC, 1, "12345678901231", "[91]1234567890123456789012345678901234567", 0, 16, 56, "Example with CC-A 2 cols, 10 rows",
|
||||
},
|
||||
/* 22*/ { BARCODE_DBAR_OMNSTK_CC, -1, 1, "12345678901231", "[91]1234567890123456789012345678901234567", 0, 16, 56, "Example with CC-A 2 cols, 10 rows",
|
||||
"01101001000111100110100111001011101110001000011101001101"
|
||||
"01101011000110001011101000001000111010111110011101011101"
|
||||
"01101011100110101100111111001000111100001001011101011001"
|
||||
|
@ -393,8 +429,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00000101010101010101010101010101010101010101010000000000"
|
||||
"00000110000101111010010101010000111101011000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*21*/ { BARCODE_UPCE_CC, 1, "1234567", "[91]123456789012345678901234567890123456789012334", 0, 16, 55, "Example with CC-A 2 cols, 12 rows",
|
||||
},
|
||||
/* 23*/ { BARCODE_UPCE_CC, -1, 1, "1234567", "[91]123456789012345678901234567890123456789012334", 0, 16, 55, "Example with CC-A 2 cols, 12 rows",
|
||||
"1110010100100100011111001101110001011100110011011000101"
|
||||
"1110110100111000110101111101001111100110010011001000101"
|
||||
"1110100100111010110011110001110001110110011011101000101"
|
||||
|
@ -411,8 +447,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010010011011110101000110111001000010100100010101010"
|
||||
},
|
||||
/*22*/ { BARCODE_DBAR_LTD_CC, 1, "12345678901231", "[91]1234567890123456789012345", 0, 7, 79, "Example with CC-A 3 cols, 5 rows",
|
||||
},
|
||||
/* 24*/ { BARCODE_DBAR_LTD_CC, -1, 1, "12345678901231", "[91]1234567890123456789012345", 0, 7, 79, "Example with CC-A 3 cols, 5 rows",
|
||||
"0111100110100111001001101000101110111000100001011101110010000011000010101000000"
|
||||
"0100011101011111001011101000111010110010000001100111101011111011000110101000000"
|
||||
"0101100111011111001011001000110110000010111101110001011111001011000100101000000"
|
||||
|
@ -420,8 +456,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0111110101011000001011000100110001011110001101101110111110100011110100101000000"
|
||||
"0000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*23*/ { BARCODE_EANX_CC, 1, "1234567", "[91]1234567890123456789012345678901", 0, 10, 72, "Example with CC-A 3 cols, 6 rows",
|
||||
},
|
||||
/* 25*/ { BARCODE_EANX_CC, -1, 1, "1234567", "[91]1234567890123456789012345678901", 0, 10, 72, "Example with CC-A 3 cols, 6 rows",
|
||||
"100100011111001101011000100111000101110011001100010111010000011110100101"
|
||||
"100111110011001001011000110110101100111111001000111100001001011110101101"
|
||||
"111100100010111101010000110111011000001011001000010100001000011110101001"
|
||||
|
@ -432,8 +468,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000100000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000010000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000010100110010010011011110101000110101010011101010000100010011100101010"
|
||||
},
|
||||
/*24*/ { BARCODE_DBAR_LTD_CC, 1, "12345678901231", "[91]1234567890123456789012345678901234567", 0, 9, 79, "Example with CC-A 3 cols, 7 rows",
|
||||
},
|
||||
/* 26*/ { BARCODE_DBAR_LTD_CC, -1, 1, "12345678901231", "[91]1234567890123456789012345678901234567", 0, 9, 79, "Example with CC-A 3 cols, 7 rows",
|
||||
"0100010001101111101011010000110001101000111101110001101011111011001010001000000"
|
||||
"0110000010011011101001010000111010110011110001110001110110011011001011001000000"
|
||||
"0110010111101100001001011000100100001111000101110001011101100011001011101000000"
|
||||
|
@ -443,8 +479,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0101000110001111101011001110101100110011110001001101101111000011100101101000000"
|
||||
"0000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*25*/ { BARCODE_UPCA_CC, 1, "12345678901", "[91]12345678901234567890", 0, 7, 99, "Example with CC-A 4 cols, 3 rows",
|
||||
},
|
||||
/* 27*/ { BARCODE_UPCA_CC, -1, 1, "12345678901", "[91]12345678901234567890", 0, 7, 99, "Example with CC-A 4 cols, 3 rows",
|
||||
"110110111011110011010011100101110111000100001001110100101110111001000001100000100110111011011000101"
|
||||
"110110110011101011001000000110011110101111101001100100110010111101100001110010111011000011001000101"
|
||||
"110110100010011101000001100100111111011101001001100110111111001011010001000001100010111011101000101"
|
||||
|
@ -452,16 +488,16 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101001100100100110111101010001101100010101111010101000100100100011101001110010110011011011001010"
|
||||
},
|
||||
/*26*/ { BARCODE_DBAR_OMN_CC, 1, "12345678901231", "[91]1234567890123456789012345678", 0, 6, 100, "Example with CC-A 4 cols, 4 rows",
|
||||
},
|
||||
/* 28*/ { BARCODE_DBAR_OMN_CC, -1, 1, "12345678901231", "[91]1234567890123456789012345678", 0, 6, 100, "Example with CC-A 4 cols, 4 rows",
|
||||
"1101001000111100110100111001011101110001000010010001101011101110010000011000001001101110111011001010"
|
||||
"1101011000111010110010000001100111101011111010010000101100101111011000011011011110000100110011001010"
|
||||
"1101011100100011111011001001000000100101111010110000101100011111010010011000110101111000110111001010"
|
||||
"1101011110100011011001000001110011100010001010111000101101111011110011011100101000111000110111101010"
|
||||
"0000000001100011000110101000000001001011011100001001010110000101111010010101010000111101011000100000"
|
||||
"0000010010011100111001000111111110010100100011110110101001111010000101100000000111000010100111011101"
|
||||
},
|
||||
/*27*/ { BARCODE_DBAR_EXP_CC, 1, "[01]12345678901231", "[91]1234567890123456789012345678901234567", 0, 7, 134, "Example with CC-A 4 cols, 5 rows",
|
||||
},
|
||||
/* 29*/ { BARCODE_DBAR_EXP_CC, -1, 1, "[01]12345678901231", "[91]1234567890123456789012345678901234567", 0, 7, 134, "Example with CC-A 4 cols, 5 rows",
|
||||
"00110101111011110011010011100101110111000100001011100010101110111001000001100000100110111011011110101000000000000000000000000000000000"
|
||||
"00110100111011101011001000000110011110101111101011100110110010111101100001001000011110001011001110101000000000000000000000000000000000"
|
||||
"00110100110010001101001110000110001010011111001011100100101111100001100101000111100010100011101110101000000000000000000000000000000000"
|
||||
|
@ -469,8 +505,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00110100011011001011110110000100111001001111101001101100111110011000101001001101111110011011110110101000000000000000000000000000000000"
|
||||
"00001011100111110001000000001010010011000000101001100011100100111011010000101010000111000011110101001101011110000010010100000010100000"
|
||||
"01010100011000001110111111110000101100111111010110011100011011000100101111000000111000111100001010110010100001111101100011111100001010"
|
||||
},
|
||||
/*28*/ { BARCODE_DBAR_EXPSTK_CC, 1, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345", 0, 12, 102, "Example with CC-A 4 cols, 6 rows",
|
||||
},
|
||||
/* 30*/ { BARCODE_DBAR_EXPSTK_CC, -1, 1, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345", 0, 12, 102, "Example with CC-A 4 cols, 6 rows",
|
||||
"001100010110111100110100111001011101110001000010011100101011101110010000011000001001101110110101111010"
|
||||
"001100010100111010110010000001100111101011111010011110101100101111011000010010000111100010110100111010"
|
||||
"001100110100100011010011100001100010100111110010111110101011111000011001010001111000101000110100110010"
|
||||
|
@ -483,8 +519,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010000"
|
||||
"000000101111000001001010000001010010111100111110110000000000000000000000000000000000000000000000000000"
|
||||
"001001010000111110110001111110000101000011000001001010000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*29*/ { BARCODE_EANX_CC, 1, "123456789012", "[91]123456789012345678901234567890123456789012345678901234", 0, 11, 99, "Example with CC-A 4 cols, 7 rows",
|
||||
},
|
||||
/* 31*/ { BARCODE_EANX_CC, -1, 1, "123456789012", "[91]123456789012345678901234567890123456789012345678901234", 0, 11, 99, "Example with CC-A 4 cols, 7 rows",
|
||||
"110010111010010001111100110111000101110011001000011010110001011101000001000111010111110011011011001"
|
||||
"110010011011010110011111100100011110000100101000111010101100111011111001011100010011000011011010001"
|
||||
"110011011011011101110011000101100011010000001000110010111101111001001001100001101100011011010010001"
|
||||
|
@ -496,8 +532,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101001001101111010011101011000100001010010001010101001000111010011100101100110110110010010001010"
|
||||
},
|
||||
/*30*/ { BARCODE_UPCE_CC, 2, "1234567", "[91]1234567890123", 0, 12, 55, "Example with CC-B 2 cols, 8 rows",
|
||||
},
|
||||
/* 32*/ { BARCODE_UPCE_CC, -1, 2, "1234567", "[91]1234567890123", 0, 12, 55, "Example with CC-B 2 cols, 8 rows",
|
||||
"1100100010111011111011101001000001000010001011001000101"
|
||||
"1110100010110100001111011001100101110000100011101000101"
|
||||
"1110110010101100100111000001011111011000001011101100101"
|
||||
|
@ -510,8 +546,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010010011011110101000110111001000010100100010101010"
|
||||
},
|
||||
/*31*/ { BARCODE_DBAR_STK_CC, 2, "12345678901231", "[91]123456789012345678901234567", 0, 15, 56, "Example with CC-B 2 cols, 11 rows",
|
||||
},
|
||||
/* 33*/ { BARCODE_DBAR_STK_CC, -1, 2, "12345678901231", "[91]123456789012345678901234567", 0, 15, 56, "Example with CC-B 2 cols, 11 rows",
|
||||
"01100100010111011111011101001000001000010001011100110101"
|
||||
"01110100010110100001111011001100101110000100011110110101"
|
||||
"01110110010101100100111000001011111011000001011110010101"
|
||||
|
@ -527,8 +563,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"01001001110011100100011111111001010010001111011010000000"
|
||||
"00000110001101011010101010101010101101010000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*32*/ { BARCODE_DBAR_OMNSTK_CC, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123", 0, 20, 56, "Example with CC-B 2 cols, 14 rows",
|
||||
},
|
||||
/* 34*/ { BARCODE_DBAR_OMNSTK_CC, -1, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123", 0, 20, 56, "Example with CC-B 2 cols, 14 rows",
|
||||
"01110111010100011111010011101101111110101110011101110101"
|
||||
"01110011010100100101111000001001000100001111011100110101"
|
||||
"01111011010101101111001110001111011110101000011110110101"
|
||||
|
@ -549,8 +585,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00000101010101010101010101010101010101010101010000000000"
|
||||
"00000110000101111010010101010000111101011000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*33*/ { BARCODE_UPCE_CC, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567", 0, 21, 55, "Example with CC-B 2 cols, 17 rows",
|
||||
},
|
||||
/* 35*/ { BARCODE_UPCE_CC, -1, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567", 0, 21, 55, "Example with CC-B 2 cols, 17 rows",
|
||||
"1100110100100000011100101101100111111011001011001101001"
|
||||
"1101110100111110110100111101110110010000110011011101001"
|
||||
"1101100100111001011001000001110001101110100011011001001"
|
||||
|
@ -572,8 +608,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010010011011110101000110111001000010100100010101010"
|
||||
},
|
||||
/*34*/ { BARCODE_DBAR_STK_CC, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890", 0, 24, 56, "Example with CC-B 2 cols, 20 rows",
|
||||
},
|
||||
/* 36*/ { BARCODE_DBAR_STK_CC, -1, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890", 0, 24, 56, "Example with CC-B 2 cols, 20 rows",
|
||||
"01111010100111011111011101001000001000010001011110101001"
|
||||
"01110010100110100001111011001100101110000100011100101001"
|
||||
"01110110100101100100111000001011111011000001011101101001"
|
||||
|
@ -598,8 +634,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"01001001110011100100011111111001010010001111011010000000"
|
||||
"00000110001101011010101010101010101101010000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*35*/ { BARCODE_DBAR_OMNSTK_CC, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890123456789012", 0, 29, 56, "Example with CC-B 2 cols, 23 rows",
|
||||
},
|
||||
/* 37*/ { BARCODE_DBAR_OMNSTK_CC, -1, 2, "12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890123456789012", 0, 29, 56, "Example with CC-B 2 cols, 23 rows",
|
||||
"01110011010100000011100101101100111111011001011110100101"
|
||||
"01111011010111110110100111101110110010000110011110101101"
|
||||
"01111001010111001011001000001110001101110100011110101001"
|
||||
|
@ -629,8 +665,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00000101010101010101010101010101010101010101010000000000"
|
||||
"00000110000101111010010101010000111101011000100000000000"
|
||||
"10101001111010000101100000000111000010100111011101000000"
|
||||
},
|
||||
/*36*/ { BARCODE_UPCE_CC, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, 30, 55, "Example with CC-B 2 cols, 26 rows",
|
||||
},
|
||||
/* 38*/ { BARCODE_UPCE_CC, -1, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, 30, 55, "Example with CC-B 2 cols, 26 rows",
|
||||
"1100101000100000011100101101000001111001010011000101001"
|
||||
"1100101100111110110100111101110110010000110011001101001"
|
||||
"1100101110111001011001000001110001101110100011011101001"
|
||||
|
@ -661,8 +697,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001"
|
||||
"0001000000000000000000000000000000000000000000000000010"
|
||||
"0001010010011011110101000110111001000010100100010101010"
|
||||
},
|
||||
/*37*/ { BARCODE_DBAR_LTD_CC, 2, "12345678901231", "[91]123456", 0, 8, 88, "Example with CC-B 3 cols, 6 rows",
|
||||
},
|
||||
/* 39*/ { BARCODE_DBAR_LTD_CC, -1, 2, "12345678901231", "[91]123456", 0, 8, 88, "Example with CC-B 3 cols, 6 rows",
|
||||
"1100100010111011111011101001011001110100000100001000101110100001000111011001000101000000"
|
||||
"1110100010111010111101110001001001110101000011110010001101011100000010011101000101000000"
|
||||
"1110110010110011010000111101001101110110111110100010001011001001110000011101100101000000"
|
||||
|
@ -671,8 +707,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1101111010100111100100100001000110110100001111001101101011100111001111011011110101000000"
|
||||
"0000000000000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0000000000101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*38*/ { BARCODE_EANX_CC, 2, "1234567", "[91]123456789012345678", 0, 12, 82, "Example with CC-B 3 cols, 8 rows",
|
||||
},
|
||||
/* 40*/ { BARCODE_EANX_CC, -1, 2, "1234567", "[91]123456789012345678", 0, 12, 82, "Example with CC-B 3 cols, 8 rows",
|
||||
"1100111010111011111011101001000010110100000100001000101111101101001111011001110101"
|
||||
"1110111010110010111000010001000010010111001011001000001110001101110100011101110101"
|
||||
"1110011010110111111001101001000011010101000101111000001100100110111111011100110101"
|
||||
|
@ -685,8 +721,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0000000000000100000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"0000000000000010000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"0000000000000010100110010010011011110101000110101010011101010000100010011100101010"
|
||||
},
|
||||
/*39*/ { BARCODE_DBAR_LTD_CC, 2, "12345678901231", "[91]12345678901234567890123456789", 0, 12, 88, "Example with CC-B 3 cols, 10 rows",
|
||||
},
|
||||
/* 41*/ { BARCODE_DBAR_LTD_CC, -1, 2, "12345678901231", "[91]12345678901234567890123456789", 0, 12, 88, "Example with CC-B 3 cols, 10 rows",
|
||||
"1100010010100000011100101101001111010110011111101100101001001011110000011000100101000000"
|
||||
"1110010010111011001000011001011111010101101111001110001111011110101000011100100101000000"
|
||||
"1111010010110001110111110101011110010111010001110001101110110011110011011110100101000000"
|
||||
|
@ -699,8 +735,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1110101110110111110100010001001000010101111001100001101101110100111000011101011101000000"
|
||||
"0000000000000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0000000000101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*40*/ { BARCODE_EANX_CC, 2, "1234567", "[91]12345678901234567890123456789012345678901", 0, 16, 82, "Example with CC-B 3 cols, 12 rows",
|
||||
},
|
||||
/* 42*/ { BARCODE_EANX_CC, -1, 2, "1234567", "[91]12345678901234567890123456789012345678901", 0, 16, 82, "Example with CC-B 3 cols, 12 rows",
|
||||
"1110101100111011111011101001011000010100000100001000101111101101001111011101011001"
|
||||
"1110101000110010111000010001011100010111001011001000001110001101110100011101010001"
|
||||
"1100101000110111111001101001011100110110010110011111101100110010001111011001010001"
|
||||
|
@ -717,8 +753,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0000000000000100000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"0000000000000010000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"0000000000000010100110010010011011110101000110101010011101010000100010011100101010"
|
||||
},
|
||||
/*41*/ { BARCODE_DBAR_LTD_CC, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567", 0, 17, 88, "Example with CC-B 3 cols, 15 rows",
|
||||
},
|
||||
/* 43*/ { BARCODE_DBAR_LTD_CC, -1, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567", 0, 17, 88, "Example with CC-B 3 cols, 15 rows",
|
||||
"1101110100111011111011101001011000100100000100001000101111101101001111011011101001000000"
|
||||
"1101100100110010111000010001011000110111001011001000001110001101110100011011001001000000"
|
||||
"1101100110110111111001101001010000110110010110011111101100110010001111011011001101000000"
|
||||
|
@ -736,8 +772,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1101000010101111110011101001011011100111011010111110001100010111111010011010000101000000"
|
||||
"0000000000000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0000000000101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*42*/ { BARCODE_EANX_CC, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]12345678901234567890123", 0, 30, 82, "Example with CC-B 3 cols, 26 rows",
|
||||
},
|
||||
/* 44*/ { BARCODE_EANX_CC, -1, 2, "1234567", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]12345678901234567890123", 0, 30, 82, "Example with CC-B 3 cols, 26 rows",
|
||||
"1100100010111011111011101001000011010100000100001000101111101101001111011110100101"
|
||||
"1110100010110010111000010001000111010111001011001000001110001101110100011110101101"
|
||||
"1110110010110111111001101001000110010110010110011111101100110010001111011110101001"
|
||||
|
@ -768,8 +804,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0000000000000100000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"0000000000000010000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"0000000000000010100110010010011011110101000110101010011101010000100010011100101010"
|
||||
},
|
||||
/*43*/ { BARCODE_DBAR_LTD_CC, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]1234567890123456789012345678901", 0, 46, 88, "Example with CC-B 3 cols, 44 rows",
|
||||
},
|
||||
/* 45*/ { BARCODE_DBAR_LTD_CC, -1, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]1234567890123456789012345678901", 0, 46, 88, "Example with CC-B 3 cols, 44 rows",
|
||||
"1100100010111011111011101001011000010110001110001101001111101101001111011010001001000000"
|
||||
"1110100010110010111000010001011100010111001011001000001110001101110100011010001101000000"
|
||||
"1110110010110111111001101001011100110110010110011111101100110010001111011010000101000000"
|
||||
|
@ -816,8 +852,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1101011000110000100111101101011111010111100010100001001100001011100010011011011101000000"
|
||||
"0000000000000101110100000101011100000101010100011011010110101011010111110001110000000000"
|
||||
"0000000000101010001011111010100011111010101011100100101001010100101000001110001110100000"
|
||||
},
|
||||
/*44*/ { BARCODE_UPCA_CC, 2, "12345678901", "[91]1234567890123", 0, 8, 99, "Example with CC-B 4 cols, 4 rows",
|
||||
},
|
||||
/* 46*/ { BARCODE_UPCA_CC, -1, 2, "12345678901", "[91]1234567890123", 0, 8, 99, "Example with CC-B 4 cols, 4 rows",
|
||||
"110100111010001111101001110110111111010111001001110110110100001111011001100101110000100011010010001"
|
||||
"110100110010110010011100000101111101100000101001110100110111111001101001110100111110010011010110001"
|
||||
"110100010011100110100001100110010000010110001001100100100111101111010001110001110100010011010111001"
|
||||
|
@ -826,8 +862,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101001100100100110111101010001101100010101111010101000100100100011101001110010110011011011001010"
|
||||
},
|
||||
/*45*/ { BARCODE_EANX_CC, 2, "123456789012", "[91]1234567890123456789012345", 0, 10, 99, "Example with CC-B 4 cols, 6 rows",
|
||||
},
|
||||
/* 47*/ { BARCODE_EANX_CC, -1, 2, "123456789012", "[91]1234567890123456789012345", 0, 10, 99, "Example with CC-B 4 cols, 6 rows",
|
||||
"110010001011101111101110100110001110001101001011001110111110110100111101110110010000110011001000101"
|
||||
"111010001011100101100100000111000110111010001001001110110001110111110101110100011100011011101000101"
|
||||
"111011001011001100100011110100101000011110001001101110101100010111000001010011000111110011101100101"
|
||||
|
@ -838,8 +874,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101001001101111010011101011000100001010010001010101001000111010011100101100110110110010010001010"
|
||||
},
|
||||
/*46*/ { BARCODE_GS1_128_CC, 2, "[01]12345678901231", "[91]12345678901234567890123456789012345678901", 0, 10, 145, "Example with CC-B 4 cols, 8 rows",
|
||||
},
|
||||
/* 48*/ { BARCODE_GS1_128_CC, -1, 2, "[01]12345678901231", "[91]12345678901234567890123456789012345678901", 0, 10, 145, "Example with CC-B 4 cols, 8 rows",
|
||||
"0000000000000000000001100111010111011111011101001000001000010001010000101101111101101001111011101100100001100110011101010000000000000000000000000"
|
||||
"0000000000000000000001110111010111001011001000001110001101110100010000100101100011101111101011101000111000110111011101010000000000000000000000000"
|
||||
"0000000000000000000001110011010110011001000111101001010000111100010000110101011000101110000011111010011101000111001101010000000000000000000000000"
|
||||
|
@ -850,8 +886,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0000000000000000000001100011010110111000111110101111100010010011010011100101000011010111111011001100001111010110001101010000000000000000000000000"
|
||||
"0010110001100001010001001100100110100110001101110100111000111010010011110101100100001001010011000110010011100100010100001000101001110011100010100"
|
||||
"1101001110011110101110110011011001011001110010001011000111000101101100001010011011110110101100111001101100011011101011110111010110001100011101011"
|
||||
},
|
||||
/*47*/ { BARCODE_DBAR_OMN_CC, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567", 0, 12, 100, "Example with CC-B 4 cols, 10 rows",
|
||||
},
|
||||
/* 49*/ { BARCODE_DBAR_OMN_CC, -1, 2, "12345678901231", "[91]123456789012345678901234567890123456789012345678901234567", 0, 12, 100, "Example with CC-B 4 cols, 10 rows",
|
||||
"1100010010100000011100101101100111111011001010011110101001001011110000010010001000011110110001001010"
|
||||
"1110010010101101111001110001111011110101000010111110101100001100101000011111001010111110111001001010"
|
||||
"1111010010111011001111001101110100011000010010111100101001011111011000011111101001011100111101001010"
|
||||
|
@ -864,8 +900,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1110101110101111000010010001011110000010001010010000101001010000111100011011110001011000111010111010"
|
||||
"0000000001100011000110101000000001001011011100001001010110000101111010010101010000111101011000100000"
|
||||
"0000010010011100111001000111111110010100100011110110101001111010000101100000000111000010100111011101"
|
||||
},
|
||||
/*48*/ { BARCODE_DBAR_EXP_CC, 2, "[01]12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890123", 0, 14, 134, "Example with CC-B 4 cols, 12 rows",
|
||||
},
|
||||
/* 50*/ { BARCODE_DBAR_EXP_CC, -1, 2, "[01]12345678901231", "[91]1234567890123456789012345678901234567890123456789012345678901234567890123", 0, 14, 134, "Example with CC-B 4 cols, 12 rows",
|
||||
"00111010110011101111101110100100000100001000101011000010111110110100111101110110010000110011101011001000000000000000000000000000000000"
|
||||
"00111010100011100101100100000111000110111010001011100010110001110111110101110100011100011011101010001000000000000000000000000000000000"
|
||||
"00110010100011001100100011110100101000011110001011100110101100010111000001111101001110100011001010001000000000000000000000000000000000"
|
||||
|
@ -880,8 +916,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00110011010011111101001110110110110001011110001011001100110001111010011001000001110110111011001101001000000000000000000000000000000000"
|
||||
"00001011100111110001000000001010010011000000101001100011100100111011010000101010000111000011110101001101011110000010010100000010100000"
|
||||
"01010100011000001110111111110000101100111111010110011100011011000100101111000000111000111100001010110010100001111101100011111100001010"
|
||||
},
|
||||
/*49*/ { BARCODE_DBAR_EXPSTK_CC, 2, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]1234567890123456789012345678901234567890123456", 0, 26, 102, "Example with CC-B 4 cols, 20 rows",
|
||||
},
|
||||
/* 51*/ { BARCODE_DBAR_EXPSTK_CC, -1, 2, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]1234567890123456789012345678901234567890123456", 0, 26, 102, "Example with CC-B 4 cols, 20 rows",
|
||||
"001100100010111011111011101001000001000010001010111100101111101101001111011101100100001100111001011010"
|
||||
"001110100010111001011001000001110001101110100010111101101100011101111101011101000111000110110001011010"
|
||||
"001110110010110011001000111101001010000111100010011101101011000101110000011111010011101000110001010010"
|
||||
|
@ -908,8 +944,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010000"
|
||||
"000000101111000001001010000001010010111100111110110000000000000000000000000000000000000000000000000000"
|
||||
"001001010000111110110001111110000101000011000001001010000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*50*/ { BARCODE_UPCA_CC, 2, "12345678901", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567", 0, 48, 99, "Example with CC-B 4 cols, 44 rows",
|
||||
},
|
||||
/* 52*/ { BARCODE_UPCA_CC, -1, 2, "12345678901", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567", 0, 48, 99, "Example with CC-B 4 cols, 44 rows",
|
||||
"110010001011101111101110100100000100001000101011000010111110110100111101110110010000110011010001001"
|
||||
"111010001011100101100100000111000110111010001011100010110001110111110101110100011100011011010001101"
|
||||
"111011001011001100100011110100101000011110001011100110101100010111000001111101001110100011010000101"
|
||||
|
@ -958,8 +994,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010"
|
||||
"000101001100100100110111101010001101100010101111010101000100100100011101001110010110011011011001010"
|
||||
},
|
||||
/*51*/ { BARCODE_GS1_128_CC, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]12345678901234567890123456789012345678901234567890123456789012345678901234567", 0, 32, 154, "Example with CC-C 5 cols, 30 rows",
|
||||
},
|
||||
/* 53*/ { BARCODE_GS1_128_CC, -1, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]12345678901234567890123456789012345678901234567890123456789012345678901234567", 0, 32, 154, "Example with CC-C 5 cols, 30 rows",
|
||||
"1111111101010100010101000001000000101000001000001001110111110111010010000010000100010111110110100111101110110010000110011110101001111000111111101000101001"
|
||||
"1111111101010100011111010100000110111001011001000001110001101110100011000111011111010111010001110001101110110011110011011111010100001100111111101000101001"
|
||||
"1111111101010100011101010011111100100101000011110001011000101110000011111010011101000100010110001111101011100100001100011111101011010000111111101000101001"
|
||||
|
@ -992,8 +1028,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"1111111101010100010110001110111110100111000000101101000001101000111011111001011101000101111101111011101000111011001110010010000010111100111111101000101001"
|
||||
"0000000001011000110000101000100110010011010011000110111010011100011101001001111010110010000100101001100011001001110010100001000101110010001001110001010000"
|
||||
"0000000110100111001111010111011001101100101100111001000101100011100010110110000101001101111011010110011100110110001101011110111010001101110110001110101100"
|
||||
},
|
||||
/*52*/ { BARCODE_GS1_128_CC, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]12345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, 28, 171, "Example with CC-C 6 cols, 25 rows",
|
||||
},
|
||||
/* 54*/ { BARCODE_GS1_128_CC, -1, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]12345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, 28, 171, "Example with CC-C 6 cols, 25 rows",
|
||||
"111111110101010001101010000110000011010000001001100111011111011101001000001000010001011111011010011110111011001000011001011011110011100011111010100111110111111101000101001"
|
||||
"111111110101010001111010100000100011100011011101000110001110111110101110100011100011011101100111100110111010001100001001001011111011000011110101000010000111111101000101001"
|
||||
"111111110101010001010100011110000011111010011101000100010110001111101011100100001100010011110000010010101100010111000001011010011100000010101000001111000111111101000101001"
|
||||
|
@ -1022,8 +1058,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"111111110101010001100101111001100011011110101111100111110010000101101000010011111011011110011011100110111000100011101101100000010111010011100101111011100111111101000101001"
|
||||
"000000000101100011000010100010011001001101001100011011101001110001110100100111101011001000010010100110001100100111001010000100010111001000100111000101000000000000000000000"
|
||||
"000000011010011100111101011101100110110010110011100100010110001110001011011000010100110111101101011001110011011000110101111011101000110111011000111010110000000000000000000"
|
||||
},
|
||||
/*53*/ { BARCODE_GS1_128_CC, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]1234567890123456789012345678901234567890", 0, 32, 528, "Example with CC-C 27 cols, 30 rows",
|
||||
},
|
||||
/* 55*/ { BARCODE_GS1_128_CC, -1, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]1234567890123456789012345678901234567890", 0, 32, 528, "Example with CC-C 27 cols, 30 rows",
|
||||
"111111110101010001010100000100000010000100001000010111011111011101001000001000010001011111011010011110111011001000011001011011110011100011110111101010000110000110010100001111100101011111010001011000110000101000001100011001100100010000110011010011110111110101100011000010001100110110110000011111011110010110110010001000011001001011100011100011001000010011000100010110000011001000100001000001011011110011101000100001001000010001111101101001111010111001110010000111101001001111001001000010010000011101011100111110111111101000101001"
|
||||
"111111110101010001111010110011000010010000111101000101000001111010001111110101000111011100110011101000101111010111100001111000100110110011111101001001110111001101110010001001100111110001010101111000010000111100100011011001011010011111100011110011011010000100111011111101001111100110110011010001110100111110111010000111011001001110100111110011000110111101000110000100001110101000111001011111010101111100110000111110001010110001110000001011001011111011010000100100000100011110101101011100000100011111010100001100111111101000101001"
|
||||
"111111110101010001111110101110011010001111011101110110001110100111001100011000101111011110111010111110110010001001111101110011111001011010110100000111000100010000010111101000110100000111011111101001100100111110100111000101011100010001100011101110101111000110010010001111101001001000001111011101101011111000101100000110111101000111101000010011011101000011100100110110111100001100010010111110011101101111110100100111100011011001000111001000011011001001101111110111010111111011001110011110010111011111101011000100111111101000101001"
|
||||
|
@ -1056,8 +1092,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"111111110101010001000101001111000010011101001100000100001100010111001000001101000111010001011011111000101011000011111001011001100111100011011110000100110101101111011111101011111101110001011110110111110010110001111101010001001111010100000011100011110101110100110000100111001010001000111100010110111011111000111111010011001001001111001110111010111011000111000101100000100011101010010000111100010010001101111100100100110111110001100111101011000011110010001111010111011101000111101100111110100010010110000010011100111111101000101001"
|
||||
"000000000101100011000010100010011001001101001100011011101001110001110100100111101011001000010010100110001100100111001010000100010111001000100111000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
"000000011010011100111101011101100110110010110011100100010110001110001011011000010100110111101101011001110011011000110101111011101000110111011000111010110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*54*/ { BARCODE_GS1_128_CC, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]1234567890123456789012" "34567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345", 0, 32, 579, "Example with CC-C 30 cols, 30 rows (max)",
|
||||
},
|
||||
/* 56*/ { BARCODE_GS1_128_CC, -1, 3, "[01]12345678901231", "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[94]123456789012345678901234567890123456789012345678901234567890123" "456789012345678901234567890[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890[98]123456789012345678901234567890123456789012345", 0, 32, 579, "Example with CC-C 30 cols, 30 rows (max)",
|
||||
"111111110101010001010100000100000010001110111000100111011111011101001100011100011010011111011010011110111011001000011001011011110011100011110111101010000110000110010100001111100101011111010001011000110000101000001100011001100100010000110011010011110111110101100011000010001100110110110000011111011110010110110010001000011001001011100011100011001000010011000100010110000011001000100001000001011011110011101000100001001000010001111101101001111010111001110010000111101001001111001001000010010000011100110111011110101101100010000001110101000111000010101111011110000111111101000101001"
|
||||
"111111110101010001111101011011100011100110011101000101111010111100001111000100110110011111101001001110111001101110010001001100111110001010101111000010000111100100011011001011010011111100011110011011010000100111011111101001111100110110011010001110100111110111010000111011001001110100111110011000110111101000110000100001110101000111001011111010101111100110000111110001010110001110000001011001011111011010000100100000100011110101101011100000100010111100010111100100010000111101001001101111110110011111011001100110111001011100110001110000010011001011111010100001100111111101000101001"
|
||||
"111111110101010001010111000111111010110100000111000100010000010111101000110100000111011111101001100100111110100111000101011100010001100011101110101111000110010010001111101001001000001111011101101011111000101100000110111101000111101000010011011101000011100100110110111100001100010010111110011101101111110100100111100011011001000111001000011011001001101111110111010111111011001110011110010111010011110001100110101110000010110001011000001001110010110110000111100100001000010111101101100110011111010101101111100000100101110011111101000011001000111011111101011001000111111101000101001"
|
||||
|
@ -1090,8 +1126,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"111111110101010001100010100011111011011101000111000100010010011110001001100011001111010001101100011110110000111110100101010000110011111011000011111010100100010011011111001010001000011110010011110011000110101111000110001101111011011111010010111001000011000110010010011111001110000101111101010101110011111100111111000101100101111110100110001011111100101110110100010011011111001001100011011110010111101100000110101111011001100001111100010111001010100010111100000110100100011111001110111100101110010000111010001100111111010011001001010001000011110010110000110011110111111101000101001"
|
||||
"000000000101100011000010100010011001001101001100011011101001110001110100100111101011001000010010100110001100100111001010000100010111001000100111000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
"000000011010011100111101011101100110110010110011100100010110001110001011011000010100110111101101011001110011011000110101111011101000110111011000111010110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*55*/ { BARCODE_GS1_128_CC, 3, "[01]12345678901231", "[91]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[92]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[93]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[94]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[95]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[96]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[97]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[98]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[99]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[91]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[92]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[93]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[94]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[95]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[96]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF", 0, 32, 579, "Example with CC-C 30 cols, 30 rows (max)",
|
||||
},
|
||||
/* 57*/ { BARCODE_GS1_128_CC, -1, 3, "[01]12345678901231", "[91]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[92]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[93]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[94]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[95]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[96]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[97]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[98]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[99]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[91]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[92]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[93]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[94]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[95]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKL[96]ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF", 0, 32, 579, "Example with CC-C 30 cols, 30 rows (max)",
|
||||
"111111110101010001010100000100000010001110111000100111011111011101001100011100011010011111011010011110110100100110000001001100110100000011001100100100000100011000001101001011001100001000010001100001100010100001011000001101110111101101000010000010100001000100100001100110001011000111000011010011000001100010111011001000011001110110100000110010001010000001000100011000110000101100110000100001011110110101110000111011001000110001100100010110000011101100101100000100101110111000001100001011001110011000010000100110110010000100110001110011101000010010101111011110000111111101000101001"
|
||||
"111111110101010001111101011011100011010001110000100111010001100010001010011111101110011111011001100110111010000011010001111010001000100011111101110110110111100110110010001111001011000011011110001000100010101110011011111101111110011010011011110000101000010111100100100001001110100111101110010001000111100100111101011101110001110101111000111011111101100101100100010011110100001110001000110010011111100010101110101101111100001001111001010000100011110101100110000111010000111011001111101100010100011000100011110110111111011010001101111101100000101011111010100001100111111101000101001"
|
||||
"111111110101010001010111000111111010010111011111100100001101000011101111110110011101011101011111000100110110001001111001001110011001110010011000011011110111001111100101101110110001011111010010010111100000110001101011110001101110101110000010010110001111100101001011110000001101000100111110011100110100111110111010111110000101101110011001111011100100011111010110111111001100101010010011110000011101011111010000110011000101111001001001100011111010001110110001110111001110101111001110111111010010010000011010011100110111000101110001100111000101110011111101011001000111111101000101001"
|
||||
|
@ -1124,8 +1160,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"111111110101010001100010100011111011011000001011110110011101000011101110101111101000010011110110110000110001110100111001100011111010001011100100101111110100011110110011001100111010111000011011111010001000110011111010001001010110011111000010011111001101000101111100011001001110110101111100011001101011110000110001111010110001110111101000111010010111001111110100111000000101101111110101101000010111100100100000110001110010011101101011111100010010011110000010010100001110100001101000001110010110010001110001101110100111010001100001110110111111001010110000110011110111111101000101001"
|
||||
"000000000101100011000010100010011001001101001100011011101001110001110100100111101011001000010010100110001100100111001010000100010111001000100111000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
"000000011010011100111101011101100110110010110011100100010110001110001011011000010100110111101101011001110011011000110101111011101000110111011000111010110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
/*56*/ { BARCODE_EANX_CC, 1, "123456789012+12", "[91]123456789012345678901", 0, 8, 126, "Example of EAN-13 with 2-digit addon, CC-A 4 cols, 4 rows",
|
||||
},
|
||||
/* 58*/ { BARCODE_EANX_CC, -1, 1, "123456789012+12", "[91]123456789012345678901", 0, 8, 126, "Example of EAN-13 with 2-digit addon, CC-A 4 cols, 4 rows",
|
||||
"110100100011110011010011100101110111000100001001000110101110111001000001100000100110111011101100101000000000000000000000000000"
|
||||
"110101100011101011001000000110011110101111101001000010110010111101100001100100111000001011001100101000000000000000000000000000"
|
||||
"110101110011101011111010000111111001101110101011000010111110101111001101001101001110000011011100101000000000000000000000000000"
|
||||
|
@ -1134,8 +1170,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000"
|
||||
"000101001001101111010011101011000100001010010001010101001000111010011100101100110110110010010001010000000101100110010100100110"
|
||||
},
|
||||
/*57*/ { BARCODE_EANX_CC, 1, "123456789012+54321", "[91]1234567890", 0, 7, 153, "Example of EAN-13 with 5-digit addon, CC-B 4 cols, 3 rows",
|
||||
},
|
||||
/* 59*/ { BARCODE_EANX_CC, -1, 1, "123456789012+54321", "[91]1234567890", 0, 7, 153, "Example of EAN-13 with 5-digit addon, CC-B 4 cols, 3 rows",
|
||||
"110110111011110011010011100101110111000100001001110100101110111001000001100000100110111011011000101000000000000000000000000000000000000000000000000000000"
|
||||
"110110110011111101010011100111110001001001101001100100110100011100010001001011111100111011001000101000000000000000000000000000000000000000000000000000000"
|
||||
"110110100010100000101111000111001111001011101001100110110011111010010001001111101101000011101000101000000000000000000000000000000000000000000000000000000"
|
||||
|
@ -1143,8 +1179,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000"
|
||||
"000101001001101111010011101011000100001010010001010101001000111010011100101100110110110010010001010000000101101110010101000110101000010100100110100110010"
|
||||
},
|
||||
/*58*/ { BARCODE_UPCA_CC, 1, "12345678901+12", "[91]123456789", 0, 7, 128, "Example of UPC-A with 2-digit addon, CC-A 4 cols, 3 rows",
|
||||
},
|
||||
/* 60*/ { BARCODE_UPCA_CC, -1, 1, "12345678901+12", "[91]123456789", 0, 7, 128, "Example of UPC-A with 2-digit addon, CC-A 4 cols, 3 rows",
|
||||
"11011011101111001101001110010111011100010000100111010010111011100100000110000010011011101101100010100000000000000000000000000000"
|
||||
"11011011001110011100111101011000010001110010100110010011101011001000000100101111110011101100100010100000000000000000000000000000"
|
||||
"11011010001000011110010001010111101000000100100110011010001110000101100110111000100011101110100010100000000000000000000000000000"
|
||||
|
@ -1152,8 +1188,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000"
|
||||
"00010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000"
|
||||
"00010100110010010011011110101000110110001010111101010100010010010001110100111001011001101101100101000000000101100110010100100110"
|
||||
},
|
||||
/*59*/ { BARCODE_UPCA_CC, 2, "12345678901+12121", "[91]1234567890123", 0, 8, 155, "Example of UPC-A with 5-digit addon, CC-B 4 cols, 4 rows",
|
||||
},
|
||||
/* 61*/ { BARCODE_UPCA_CC, -1, 2, "12345678901+12121", "[91]1234567890123", 0, 8, 155, "Example of UPC-A with 5-digit addon, CC-B 4 cols, 4 rows",
|
||||
"11010011101000111110100111011011111101011100100111011011010000111101100110010111000010001101001000100000000000000000000000000000000000000000000000000000000"
|
||||
"11010011001011001001110000010111110110000010100111010011011111100110100111010011111001001101011000100000000000000000000000000000000000000000000000000000000"
|
||||
"11010001001110011010000110011001000001011000100110010010011110111101000111000111010001001101011100100000000000000000000000000000000000000000000000000000000"
|
||||
|
@ -1162,8 +1198,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000"
|
||||
"00010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000"
|
||||
"00010100110010010011011110101000110110001010111101010100010010010001110100111001011001101101100101000000000101100110010100100110101100110100110110100110010"
|
||||
},
|
||||
/*60*/ { BARCODE_UPCE_CC, 1, "0654321+89", "[91]1", 0, 9, 82, "Example of UPC-E with 2-digit addon, CC-A 2 cols, 5 rows",
|
||||
},
|
||||
/* 62*/ { BARCODE_UPCE_CC, -1, 1, "0654321+89", "[91]1", 0, 9, 82, "Example of UPC-E with 2-digit addon, CC-A 2 cols, 5 rows",
|
||||
"1101100110111101110101111101010001000111100011110101001000000000000000000000000000"
|
||||
"1101101110111011000010001101110010101110000011100101001000000000000000000000000000"
|
||||
"1101101100110001011111011101111010000100100011101101001000000000000000000000000000"
|
||||
|
@ -1173,8 +1209,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001000000000000000000000000000"
|
||||
"0001000000000000000000000000000000000000000000000000010000000000000000000000000000"
|
||||
"0001010000101011000100111010111101001101100110010101010000000101101101110100101110"
|
||||
},
|
||||
/*61*/ { BARCODE_UPCE_CC, 2, "1876543+56789", "[91]12345", 0, 12, 109, "Example of UPC-E with 5-digit addon, CC-B 2 cols, 8 rows",
|
||||
},
|
||||
/* 63*/ { BARCODE_UPCE_CC, -1, 2, "1876543+56789", "[91]12345", 0, 12, 109, "Example of UPC-E with 5-digit addon, CC-B 2 cols, 8 rows",
|
||||
"1100100010111011111011101001000001000010001011001000101000000000000000000000000000000000000000000000000000000"
|
||||
"1110100010110100001111011001100101110000100011101000101000000000000000000000000000000000000000000000000000000"
|
||||
"1110110010111011001001111101000111100100001011101100101000000000000000000000000000000000000000000000000000000"
|
||||
|
@ -1187,8 +1223,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0010000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000"
|
||||
"0001000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000"
|
||||
"0001010110111001000100001010110001010001101000010101010000000101101100010101011110100100010101101110100101110"
|
||||
},
|
||||
/*62*/ { BARCODE_EANX_CC, 1, "9876543+65", "[91]1234567", 0, 8, 99, "Example of EAN-8 with 2-digit addon, CC-A 3 cols, 4 rows",
|
||||
},
|
||||
/* 64*/ { BARCODE_EANX_CC, -1, 1, "9876543+65", "[91]1234567", 0, 8, 99, "Example of EAN-8 with 2-digit addon, CC-A 3 cols, 4 rows",
|
||||
"100100011111001101010011000111000101110011001100010111010000011101001101000000000000000000000000000"
|
||||
"110111111001101001010111000110111100101100001111000100111101011101011101000000000000000000000000000"
|
||||
"100001011000001101010110000101011111011111001110100100001110011101011001000000000000000000000000000"
|
||||
|
@ -1197,8 +1233,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"000100000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000"
|
||||
"000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000"
|
||||
"000010100010110110111011101101011110101010011101011100100001011100101010000000101101011110101110010"
|
||||
},
|
||||
/*63*/ { BARCODE_EANX_CC, 2, "9876543+74083", "[91]123456789012345678", 0, 12, 136, "Example of EAN-8 with 5-digit addon, CC-B 3 cols, 8 rows",
|
||||
},
|
||||
/* 65*/ { BARCODE_EANX_CC, -1, 2, "9876543+74083", "[91]123456789012345678", 0, 12, 136, "Example of EAN-8 with 5-digit addon, CC-B 3 cols, 8 rows",
|
||||
"1100111010111011111011101001000010110100000100001000101111101101001111011001110101000000000000000000000000000000000000000000000000000000"
|
||||
"1110111010110010111000010001000010010111001011001000001110001101110100011101110101000000000000000000000000000000000000000000000000000000"
|
||||
"1110011010110111111001101001000011010101000101111000001100100110111111011100110101000000000000000000000000000000000000000000000000000000"
|
||||
|
@ -1211,8 +1247,8 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"0000000000000100000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000"
|
||||
"0000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000"
|
||||
"0000000000000010100010110110111011101101011110101010011101011100100001011100101010000000101101110110100111010100011010101101110101000010"
|
||||
},
|
||||
/*64*/ { BARCODE_EANX_CC, 1, "1234567890128+65", "[91]1234567", 0, 7, 126, "Example of EAN-13 + CHK with 2-digit addon, CC-A 3 cols, 4 rows",
|
||||
},
|
||||
/* 66*/ { BARCODE_EANX_CC, -1, 1, "1234567890128+65", "[91]1234567", 0, 7, 126, "Example of EAN-13 + CHK with 2-digit addon, CC-A 3 cols, 4 rows",
|
||||
"110110111011110011010011100101110111000100001001110100101110111001000001100001100101000011011000101000000000000000000000000000"
|
||||
"110110110010011001011111100111110110010000101001100100111111011100101001101011100010000011001000101000000000000000000000000000"
|
||||
"110110100011010111111001000110111010000111001001100110100010010011110001010000110111110011101000101000000000000000000000000000"
|
||||
|
@ -1220,12 +1256,15 @@ static void test_examples(int index, int generate, int debug) {
|
|||
"001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000"
|
||||
"000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000"
|
||||
"000101001001101111010011101011000100001010010001010101001000111010011100101100110110110010010001010000000101101011110101110010"
|
||||
},
|
||||
},
|
||||
};
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, composite_length, ret;
|
||||
struct zint_symbol *symbol;
|
||||
|
||||
char escaped[1024];
|
||||
char esc_composite[4096];
|
||||
|
||||
char bwipp_buf[32768];
|
||||
char bwipp_msg[1024];
|
||||
|
||||
|
@ -1241,7 +1280,7 @@ static void test_examples(int index, int generate, int debug) {
|
|||
symbol = ZBarcode_Create();
|
||||
assert_nonnull(symbol, "Symbol not created\n");
|
||||
|
||||
length = testUtilSetSymbol(symbol, data[i].symbology, -1 /*input_mode*/, -1 /*eci*/, data[i].option_1, -1, -1, -1 /*output_options*/, data[i].data, -1, debug);
|
||||
length = testUtilSetSymbol(symbol, data[i].symbology, data[i].input_mode, -1 /*eci*/, data[i].option_1, -1, -1, -1 /*output_options*/, data[i].data, -1, debug);
|
||||
assert_zero(length >= 128, "i:%d length %d >= 128\n", i, length);
|
||||
strcpy(symbol->primary, data[i].data);
|
||||
|
||||
|
@ -1251,7 +1290,12 @@ static void test_examples(int index, int generate, int debug) {
|
|||
assert_equal(ret, data[i].ret, "i:%d ZBarcode_Encode ret %d != %d (%s)\n", i, ret, data[i].ret, symbol->errtxt);
|
||||
|
||||
if (generate) {
|
||||
test_helper_generate(symbol, ret, i, data[i].data, data[i].composite, data[i].option_1, data[i].comment, -1 /*bwipp_cmp*/);
|
||||
printf(" /*%3d*/ { %s, %s, %d, \"%s\", \"%s\", %s, %d, %d, \"%s\",\n",
|
||||
i, testUtilBarcodeName(symbol->symbology), testUtilInputModeName(data[i].input_mode), data[i].option_1,
|
||||
testUtilEscape(data[i].data, length, escaped, sizeof(escaped)), testUtilEscape(data[i].composite, composite_length, esc_composite, sizeof(esc_composite)),
|
||||
testUtilErrorName(ret), symbol->rows, symbol->width, data[i].comment);
|
||||
testUtilModulesPrint(symbol, " ", "\n");
|
||||
printf(" },\n");
|
||||
} else {
|
||||
int width, row;
|
||||
|
||||
|
@ -2876,25 +2920,37 @@ static void test_hrt(int index, int debug) {
|
|||
/* 1*/ { BARCODE_EANX_CC, -1, "123456789012", "[20]12", 0, "1234567890128" }, // EAN-13
|
||||
/* 2*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]12", 0, "1234567890128" },
|
||||
/* 3*/ { BARCODE_EANX_CC, -1, "1234567890123", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 4*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]1A", ZINT_WARN_NONCOMPLIANT, "1234567890128" }, // AI (20) should be 2 nos.
|
||||
/* 5*/ { BARCODE_DBAR_OMN_CC, -1, "1234567890123", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 6*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 7*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 8*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "(01)12345678901231" }, // AI (20) should be 2 nos.
|
||||
/* 9*/ { BARCODE_DBAR_LTD_CC, -1, "1234567890123", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 10*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 11*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 12*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "(01)12345678901231" }, // AI (20) should be 2 nos.
|
||||
/* 13*/ { BARCODE_UPCA_CC, -1, "12345678901", "[20]12", 0, "123456789012" },
|
||||
/* 14*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]12", 0, "123456789012" },
|
||||
/* 15*/ { BARCODE_UPCA_CC, -1, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 16*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]1A", ZINT_WARN_NONCOMPLIANT, "123456789012" }, // AI (20) should be 2 nos.
|
||||
/* 17*/ { BARCODE_UPCE_CC, -1, "123456", "[20]12", 0, "01234565" },
|
||||
/* 18*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]12", 0, "12345670" },
|
||||
/* 19*/ { BARCODE_UPCE_CC, -1, "12345670", "[20]12", 0, "12345670" }, // Check digit can now be given for UPCE_CC, like UPCA_CC
|
||||
/* 20*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "12345670" }, // AI (20) should be 2 nos.
|
||||
/* 21*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]12", 0, "" }, // No HRT for stacked symbologies
|
||||
/* 22*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 4*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567890123", "[20]12", ZINT_ERROR_INVALID_CHECK, "" }, // Still checked
|
||||
/* 5*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]1A", ZINT_WARN_NONCOMPLIANT, "1234567890128" }, // AI (20) should be 2 nos.
|
||||
/* 6*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567890128", "[20]1A", 0, "1234567890128" },
|
||||
/* 7*/ { BARCODE_DBAR_OMN_CC, -1, "1234567890123", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 8*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 9*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 10*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" }, // Still checked
|
||||
/* 11*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "(01)12345678901231" }, // AI (20) should be 2 nos.
|
||||
/* 12*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "(01)12345678901231" },
|
||||
/* 13*/ { BARCODE_DBAR_LTD_CC, -1, "1234567890123", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 14*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]12", 0, "(01)12345678901231" },
|
||||
/* 15*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 16*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "" }, // Still checked
|
||||
/* 17*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "(01)12345678901231" }, // AI (20) should be 2 nos.
|
||||
/* 18*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "(01)12345678901231" },
|
||||
/* 19*/ { BARCODE_UPCA_CC, -1, "12345678901", "[20]12", 0, "123456789012" },
|
||||
/* 20*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]12", 0, "123456789012" },
|
||||
/* 21*/ { BARCODE_UPCA_CC, -1, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 22*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "" }, // Still checked
|
||||
/* 23*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]1A", ZINT_WARN_NONCOMPLIANT, "123456789012" }, // AI (20) should be 2 nos.
|
||||
/* 24*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "123456789012", "[20]1A", 0, "123456789012" },
|
||||
/* 25*/ { BARCODE_UPCE_CC, -1, "123456", "[20]12", 0, "01234565" },
|
||||
/* 26*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]12", 0, "12345670" },
|
||||
/* 27*/ { BARCODE_UPCE_CC, -1, "12345670", "[20]12", 0, "12345670" },
|
||||
/* 28*/ { BARCODE_UPCE_CC, -1, "12345671", "[20]12", ZINT_ERROR_INVALID_CHECK, "" },
|
||||
/* 29*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "12345671", "[20]12", ZINT_ERROR_INVALID_CHECK, "" }, // Still checked
|
||||
/* 30*/ { BARCODE_UPCE_CC, -1, "12345670", "[20]12", 0, "12345670" }, // Check digit can now be given for UPCE_CC, like UPCA_CC
|
||||
/* 31*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "12345670" }, // AI (20) should be 2 nos.
|
||||
/* 32*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "1234567", "[20]1A", 0, "12345670" },
|
||||
/* 33*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]12", 0, "" }, // No HRT for stacked symbologies
|
||||
/* 34*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
};
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, composite_length, ret;
|
||||
|
@ -2940,43 +2996,98 @@ static void test_input(int index, int debug) {
|
|||
// s/\/\*[ 0-9]*\*\//\=printf("\/*%3d*\/", line(".") - line("'<"))
|
||||
struct item data[] = {
|
||||
/* 0*/ { BARCODE_EANX_CC, -1, "1234567", "[20]12", 0, "" }, // EAN-8
|
||||
/* 1*/ { BARCODE_EANX_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" },
|
||||
/* 2*/ { BARCODE_EANX_CC, -1, "123456789012", "[20]12", 0, "" }, // EAN-13
|
||||
/* 3*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]12", 0, "" }, // EAN-13
|
||||
/* 4*/ { BARCODE_EANX_CC, -1, "1234567890123", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 275: Invalid check digit '3', expecting '8' in linear component" },
|
||||
/* 5*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 6*/ { BARCODE_EANX_CC, -1, "1234567890128", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 7*/ { BARCODE_DBAR_OMN_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 8*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 9*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 10*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 11*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 12*/ { BARCODE_DBAR_LTD_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 13*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 14*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 389: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 15*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 16*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 17*/ { BARCODE_UPCA_CC, -1, "12345678901", "[20]12", 0, "" },
|
||||
/* 18*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]12", 0, "" },
|
||||
/* 19*/ { BARCODE_UPCA_CC, -1, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 270: Invalid check digit '3', expecting '2' in linear component" },
|
||||
/* 20*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 21*/ { BARCODE_UPCA_CC, -1, "123456789012", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 22*/ { BARCODE_UPCE_CC, -1, "123456", "[20]12", 0, "" },
|
||||
/* 23*/ { BARCODE_UPCE_CC, -1, "123456", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 24*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]12", 0, "" },
|
||||
/* 25*/ { BARCODE_UPCE_CC, -1, "12345670", "[20]12", 0, "" }, // Check digit can now be given for UPCE_CC, like UPCA_CC
|
||||
/* 26*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 27*/ { BARCODE_UPCE_CC, -1, "1234567", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 28*/ { BARCODE_DBAR_STK_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 29*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 30*/ { BARCODE_DBAR_STK_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 31*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 32*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 33*/ { BARCODE_DBAR_OMNSTK_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 34*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 35*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 36*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 37*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 1*/ { BARCODE_EANX_CC, -1, "123456A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" }, // EAN-8
|
||||
/* 2*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "123456A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" }, // Linear component still checked
|
||||
/* 3*/ { BARCODE_EANX_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" },
|
||||
/* 4*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567", "[20]1A", 0, "" },
|
||||
/* 5*/ { BARCODE_EANX_CC, -1, "1234567", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 6*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567", "[02]12345678901234", 0, "" },
|
||||
/* 7*/ { BARCODE_EANX_CC, -1, "12345671", "[20]12", 0, "" }, // EAN-13 for EANX_CC as length 8 only EAN-8 for EANX_CHK
|
||||
/* 8*/ { BARCODE_EANX_CC, -1, "123456789012", "[20]12", 0, "" }, // EAN-13
|
||||
/* 9*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]12", 0, "" }, // EAN-13
|
||||
/* 10*/ { BARCODE_EANX_CC, -1, "1234567890123", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 275: Invalid check digit '3', expecting '8' in linear component" },
|
||||
/* 11*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567890123", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 275: Invalid check digit '3', expecting '8' in linear component" }, // Linear component still checked
|
||||
/* 12*/ { BARCODE_EANX_CC, -1, "12345678901234", "[20]12", ZINT_ERROR_TOO_LONG, "Error 448: Input too long (13 character maximum) in linear component" },
|
||||
/* 13*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "12345678901234", "[20]12", ZINT_ERROR_TOO_LONG, "Error 448: Input too long (13 character maximum) in linear component" },
|
||||
/* 14*/ { BARCODE_EANX_CC, -1, "123456789012A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 15*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "123456789012A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 16*/ { BARCODE_EANX_CC, -1, "1234567890128", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 17*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567890128", "[20]1A", 0, "" },
|
||||
/* 18*/ { BARCODE_EANX_CC, -1, "1234567890128", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 19*/ { BARCODE_EANX_CC, GS1NOCHECK_MODE, "1234567890128", "[02]12345678901234", 0, "" },
|
||||
/* 20*/ { BARCODE_DBAR_OMN_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 21*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 22*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 23*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" }, // Linear component still checked
|
||||
/* 24*/ { BARCODE_DBAR_OMN_CC, -1, "123456789012312", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 25*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "123456789012312", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 26*/ { BARCODE_DBAR_OMN_CC, -1, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 27*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 28*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 29*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "" },
|
||||
/* 30*/ { BARCODE_DBAR_OMN_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 31*/ { BARCODE_DBAR_OMN_CC, GS1NOCHECK_MODE, "12345678901231", "[02]12345678901234", 0, "" },
|
||||
/* 32*/ { BARCODE_DBAR_LTD_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 33*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 34*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 389: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 35*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 389: Invalid check digit '2', expecting '1' in linear component" }, // Linear component still checked
|
||||
/* 36*/ { BARCODE_DBAR_LTD_CC, -1, "123456789012345", "[20]12", ZINT_ERROR_TOO_LONG, "Error 382: Input too long (14 character maximum) in linear component" },
|
||||
/* 37*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "123456789012345", "[20]12", ZINT_ERROR_TOO_LONG, "Error 382: Input too long (14 character maximum) in linear component" },
|
||||
/* 38*/ { BARCODE_DBAR_LTD_CC, -1, "A1234567890123", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 383: Invalid character in data (digits only) in linear component" },
|
||||
/* 39*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "A1234567890123", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 383: Invalid character in data (digits only) in linear component" },
|
||||
/* 40*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 41*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "" },
|
||||
/* 42*/ { BARCODE_DBAR_LTD_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 43*/ { BARCODE_DBAR_LTD_CC, GS1NOCHECK_MODE, "12345678901231", "[02]12345678901234", 0, "" },
|
||||
/* 44*/ { BARCODE_UPCA_CC, -1, "12345678901", "[20]12", 0, "" },
|
||||
/* 45*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]12", 0, "" },
|
||||
/* 46*/ { BARCODE_UPCA_CC, -1, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 270: Invalid check digit '3', expecting '2' in linear component" },
|
||||
/* 47*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "123456789013", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 270: Invalid check digit '3', expecting '2' in linear component" }, // Linear component still checked
|
||||
/* 48*/ { BARCODE_UPCA_CC, -1, "1234567890123", "[20]12", ZINT_ERROR_TOO_LONG, "Error 289: Input wrong length (12 character maximum) in linear component" },
|
||||
/* 49*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "1234567890123", "[20]12", ZINT_ERROR_TOO_LONG, "Error 289: Input wrong length (12 character maximum) in linear component" },
|
||||
/* 50*/ { BARCODE_UPCA_CC, -1, "12345678901A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 51*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "12345678901A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 52*/ { BARCODE_UPCA_CC, -1, "123456789012", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 53*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "123456789012", "[20]1A", 0, "" },
|
||||
/* 54*/ { BARCODE_UPCA_CC, -1, "123456789012", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 55*/ { BARCODE_UPCA_CC, GS1NOCHECK_MODE, "123456789012", "[02]12345678901234", 0, "" },
|
||||
/* 56*/ { BARCODE_UPCE_CC, -1, "123456", "[20]12", 0, "" },
|
||||
/* 57*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]12", 0, "" },
|
||||
/* 58*/ { BARCODE_UPCE_CC, -1, "12345670", "[20]12", 0, "" }, // Check digit can now be given for UPCE_CC, like UPCA_CC
|
||||
/* 59*/ { BARCODE_UPCE_CC, -1, "12345671", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 274: Invalid check digit '1', expecting '0' in linear component" },
|
||||
/* 60*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "12345671", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 274: Invalid check digit '1', expecting '0' in linear component" }, // Linear component still checked
|
||||
/* 61*/ { BARCODE_UPCE_CC, -1, "123456712", "[20]12", ZINT_ERROR_TOO_LONG, "Error 291: Input wrong length (8 character maximum) in linear component" },
|
||||
/* 62*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "123456712", "[20]12", ZINT_ERROR_TOO_LONG, "Error 291: Input wrong length (8 character maximum) in linear component" },
|
||||
/* 63*/ { BARCODE_UPCE_CC, -1, "1234567A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 64*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "1234567A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 284: Invalid character in data (digits and \"+\" only) in linear component" },
|
||||
/* 65*/ { BARCODE_UPCE_CC, -1, "1234567", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 66*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "1234567", "[20]1A", 0, "" },
|
||||
/* 67*/ { BARCODE_UPCE_CC, -1, "1234567", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 68*/ { BARCODE_UPCE_CC, GS1NOCHECK_MODE, "1234567", "[02]12345678901234", 0, "" },
|
||||
/* 69*/ { BARCODE_DBAR_STK_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 70*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 71*/ { BARCODE_DBAR_STK_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 72*/ { BARCODE_DBAR_STK_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" }, // Linear component still checked
|
||||
/* 73*/ { BARCODE_DBAR_STK_CC, -1, "123456789012323", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 74*/ { BARCODE_DBAR_STK_CC, GS1NOCHECK_MODE, "123456789012323", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 75*/ { BARCODE_DBAR_STK_CC, -1, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 76*/ { BARCODE_DBAR_STK_CC, GS1NOCHECK_MODE, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 77*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 78*/ { BARCODE_DBAR_STK_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "" },
|
||||
/* 79*/ { BARCODE_DBAR_STK_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 80*/ { BARCODE_DBAR_STK_CC, GS1NOCHECK_MODE, "12345678901231", "[02]12345678901234", 0, "" },
|
||||
/* 81*/ { BARCODE_DBAR_OMNSTK_CC, -1, "1234567890123", "[20]12", 0, "" },
|
||||
/* 82*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]12", 0, "" },
|
||||
/* 83*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" },
|
||||
/* 84*/ { BARCODE_DBAR_OMNSTK_CC, GS1NOCHECK_MODE, "12345678901232", "[20]12", ZINT_ERROR_INVALID_CHECK, "Error 388: Invalid check digit '2', expecting '1' in linear component" }, // Linear component still checked
|
||||
/* 85*/ { BARCODE_DBAR_OMNSTK_CC, -1, "123456789012312", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 86*/ { BARCODE_DBAR_OMNSTK_CC, GS1NOCHECK_MODE, "123456789012312", "[20]12", ZINT_ERROR_TOO_LONG, "Error 380: Input too long (14 character maximum) in linear component" },
|
||||
/* 87*/ { BARCODE_DBAR_OMNSTK_CC, -1, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 88*/ { BARCODE_DBAR_OMNSTK_CC, GS1NOCHECK_MODE, "1234567890123A", "[20]12", ZINT_ERROR_INVALID_DATA, "Error 381: Invalid character in data (digits only) in linear component" },
|
||||
/* 89*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[20]1A", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (20) position 2: Non-numeric character 'A' in 2D component" }, // AI (20) should be 2 nos.
|
||||
/* 90*/ { BARCODE_DBAR_OMNSTK_CC, GS1NOCHECK_MODE, "12345678901231", "[20]1A", 0, "" },
|
||||
/* 91*/ { BARCODE_DBAR_OMNSTK_CC, -1, "12345678901231", "[02]12345678901234", ZINT_WARN_NONCOMPLIANT, "Warning 261: AI (02) position 14: Bad checksum '4', expected '1' in 2D component" },
|
||||
/* 92*/ { BARCODE_DBAR_OMNSTK_CC, GS1NOCHECK_MODE, "12345678901231", "[02]12345678901234", 0, "" },
|
||||
};
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, composite_length, ret;
|
||||
|
@ -3000,7 +3111,7 @@ static void test_input(int index, int debug) {
|
|||
ret = ZBarcode_Encode(symbol, (const unsigned char *) data[i].composite, composite_length);
|
||||
assert_equal(ret, data[i].ret, "i:%d ZBarcode_Encode ret %d != %d (%s)\n", i, data[i].ret, ret, symbol->errtxt);
|
||||
|
||||
assert_zero(strcmp((const char *) symbol->errtxt, data[i].expected_errtxt), "i:%d strcmp(%s, %s) != 0\n", i, symbol->errtxt, data[i].expected_errtxt);
|
||||
assert_zero(strcmp(symbol->errtxt, data[i].expected_errtxt), "i:%d strcmp(%s, %s) != 0\n", i, symbol->errtxt, data[i].expected_errtxt);
|
||||
|
||||
ZBarcode_Delete(symbol);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue