Companion

object Companion

Properties

Link copied to clipboard

end guard pattern.

Link copied to clipboard

As above but also including the "even", or "G" patterns used to encode UPC/EAN digits.

Link copied to clipboard

"Odd", or "L" patterns used to encode UPC/EAN digits.

Link copied to clipboard

Pattern marking the middle of a UPC/EAN pattern, separating the two halves.

Link copied to clipboard

Start/end guard pattern.

Functions

Link copied to clipboard

Computes the UPC/EAN checksum on a string of digits, and reports whether the checksum is correct or not.

Link copied to clipboard
fun decodeDigit(row: BitArray, counters: IntArray, rowOffset: Int, patterns: Array<IntArray>): Int

Attempts to decode a single UPC/EAN-encoded digit.

Link copied to clipboard
fun findGuardPattern(row: BitArray, rowOffset: Int, whiteFirst: Boolean, pattern: IntArray): IntArray
Link copied to clipboard