📄 itfmod10wt21.java
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 2007-11-23 16:17:28
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: ITFMod10Wt21.java
package com.bokai.barcodes;
// Referenced classes of package com.bokai.barcodes:
// ITF, Barcode, BarcodeSpec
class ITFMod10Wt21 extends ITF
{
ITFMod10Wt21()
{
super.bdType = 2001;
super.bdTypeName = "Interleaved 2 of 5 (Mod 10; 21 Weighting)";
super.bdStyle = 539;
}
char calcCheckChar(char ac[], int i)
{
int k = 0;
for(int j = 0; j < i; j++)
if((j & 1) != 0)
k += ac[j] - 48;
else
k += 2 * (ac[j] - 48);
k %= 10;
if(k != 0)
k = 10 - k;
return (char)(k + 48);
}
static final String name = "Interleaved 2 of 5 (Mod 10; 21 Weighting)";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -