Home
last modified time | relevance | path

Searched refs:eci_length (Results 1 – 10 of 10) sorted by relevance

/dports/graphics/zint/zint-2.10.0-src/backend/tests/
H A Dtest_eci.c790 int out_length, eci_length; in test_utf8_to_eci_ucs2be() local
797 assert_nonzero(eci_length + 1 <= 1024, "i:%d eci_length %d + 1 > 1024\n", i, eci_length); in test_utf8_to_eci_ucs2be()
802 …assert_nonzero(out_length <= eci_length, "i:%d out_length %d > eci_length %d\n", i, out_length, ec… in test_utf8_to_eci_ucs2be()
842 int out_length, eci_length; in test_utf8_to_eci_sjis() local
849 assert_nonzero(eci_length + 1 <= 1024, "i:%d eci_length %d + 1 > 1024\n", i, eci_length); in test_utf8_to_eci_sjis()
884 int out_length, eci_length; in test_utf8_to_eci_big5() local
891 assert_nonzero(eci_length + 1 <= 1024, "i:%d eci_length %d + 1 > 1024\n", i, eci_length); in test_utf8_to_eci_big5()
926 int out_length, eci_length; in test_utf8_to_eci_gb2312() local
933 assert_nonzero(eci_length + 1 <= 1024, "i:%d eci_length %d + 1 > 1024\n", i, eci_length); in test_utf8_to_eci_gb2312()
968 int out_length, eci_length; in test_utf8_to_eci_euc_kr() local
[all …]
H A Dtestcommon.c2402 int eci_length = get_eci_length(symbol->eci, (const unsigned char *) data, data_len); in testUtilBwipp() local
2403 char *converted = (char *) testutil_alloca(eci_length + 1); in testUtilBwipp()
/dports/graphics/zint/zint-2.10.0-src/backend/
H A Dgb2312.c1580 int eci_length = get_eci_length(eci, source, *p_length); in gb2312_utf8_to_eci() local
1582 unsigned char converted[eci_length + 1]; in gb2312_utf8_to_eci()
1584 unsigned char *converted = (unsigned char *) _alloca(eci_length + 1); in gb2312_utf8_to_eci()
H A Dsjis.c1548 int eci_length = get_eci_length(eci, source, *p_length); in sjis_utf8_to_eci() local
1550 unsigned char converted[eci_length + 1]; in sjis_utf8_to_eci()
1552 unsigned char *converted = (unsigned char *) _alloca(eci_length + 1); in sjis_utf8_to_eci()
H A Dcode1.c463 const int eci_length) { in eci_escape() argument
468 for (i = 0; i < length && j < eci_length; i++) { in eci_escape()
487 int eci_length = length + 7 + chr_cnt(source, length, '\\'); in c1_encode() local
489 unsigned char eci_buf[eci_length + 1]; in c1_encode()
490 int num_digits[eci_length + 1]; in c1_encode()
492 unsigned char *eci_buf = (unsigned char *) _alloca(eci_length + 1); in c1_encode()
493 int *num_digits = (int *) _alloca(sizeof(int) * (eci_length + 1)); in c1_encode()
498 memset(num_digits, 0, sizeof(int) * (eci_length + 1)); in c1_encode()
525 eci_escape(symbol->eci, source, length, eci_buf, eci_length); in c1_encode()
527 length = eci_length; in c1_encode()
H A Dgb18030.c2912 int eci_length = get_eci_length(eci, source, *p_length); in gb18030_utf8_to_eci() local
2914 unsigned char converted[eci_length + 1]; in gb18030_utf8_to_eci()
2916 unsigned char *converted = (unsigned char *) _alloca(eci_length + 1); in gb18030_utf8_to_eci()
H A Dhanxin.c1461 int eci_length = get_eci_length(symbol->eci, source, length); in han_xin() local
1464 unsigned int gbdata[eci_length + 1]; in han_xin()
1465 char mode[eci_length]; in han_xin()
1467 unsigned int *gbdata = (unsigned int *) _alloca((eci_length + 1) * sizeof(unsigned int)); in han_xin()
1468 char *mode = (char *) _alloca(eci_length); in han_xin()
H A Dqr.c1534 int eci_length = get_eci_length(symbol->eci, source, length); in qr_code() local
1537 unsigned int jisdata[eci_length + 1]; in qr_code()
1538 char mode[eci_length]; in qr_code()
1539 char prev_mode[eci_length]; in qr_code()
1544 unsigned int *jisdata = (unsigned int *) _alloca((eci_length + 1) * sizeof(unsigned int)); in qr_code()
1545 char *mode = (char *) _alloca(eci_length); in qr_code()
1546 char *prev_mode = (char *) _alloca(eci_length); in qr_code()
H A Dgridmtx.c1012 int eci_length = get_eci_length(symbol->eci, source, length); in grid_matrix() local
1015 unsigned int gbdata[eci_length + 1]; in grid_matrix()
1018 unsigned int *gbdata = (unsigned int *) _alloca((eci_length + 1) * sizeof(unsigned int)); in grid_matrix()
H A Dlibrary.c571 int eci_length = get_eci_length(symbol->eci, source, length); in reduced_charset() local
573 unsigned char preprocessed_buf[eci_length + 1]; in reduced_charset()
575 unsigned char *preprocessed_buf = (unsigned char *) _alloca(eci_length + 1); in reduced_charset()