UNPKG

@zxing/library

Version:

TypeScript port of ZXing multi-format 1D/2D barcode image processing library.

30 lines (29 loc) 978 B
import BitArray from '../common/BitArray'; import DecodeHintType from '../DecodeHintType'; import OneDReader from './OneDReader'; import Result from '../Result'; /** * <p>Decodes Code 93 barcodes.</p> * * @author Sean Owen * @see Code39Reader */ export default class Code93Reader extends OneDReader { private static readonly ALPHABET_STRING; /** * These represent the encodings of characters, as patterns of wide and narrow bars. * The 9 least-significant bits of each int correspond to the pattern of wide and narrow. */ private static readonly CHARACTER_ENCODINGS; private static readonly ASTERISK_ENCODING; private decodeRowResult; private counters; constructor(); decodeRow(rowNumber: number, row: BitArray, hints?: Map<DecodeHintType, any>): Result; private findAsteriskPattern; private toPattern; private patternToChar; private decodeExtended; private checkChecksums; private checkOneChecksum; }