ElementWithCheckDigit

data class ElementWithCheckDigit(val value: String, val positions: List<StringPosition>, val checkDigit: CheckDigit)

Represents an element extracted from a Machine Readable Zone (MRZ) along with its associated check digit according to the ICAO Doc 9303.

An element with check digit includes the string value of the element, its positions within the MRZ, and its check digit.

Constructors

Link copied to clipboard
fun ElementWithCheckDigit(value: String, positions: List<StringPosition>, checkDigit: CheckDigit)

Properties

Link copied to clipboard

The check digit associated with the element.

Link copied to clipboard

The list of string positions within the MRZ where this element appears.

Link copied to clipboard

The string value of the element.