MrzFormatSpec

sealed interface MrzFormatSpec

The field positions of one MRZ format.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard
abstract val dateOfBirth: FieldSpec

Position of the date of birth.

Link copied to clipboard

Position of the date of birth check digit.

Link copied to clipboard
abstract val dateOfExpiry: FieldSpec

Position of the date of expiry.

Link copied to clipboard

Position of the date of expiry check digit.

Link copied to clipboard

Position of the document number.

Link copied to clipboard

Position of the document number check digit.

Link copied to clipboard
abstract val documentType: FieldSpec

Position of the document type.

Link copied to clipboard
abstract val issuingState: FieldSpec

Position of the issuing state.

Link copied to clipboard
abstract val lineCount: Int

Number of lines in the MRZ.

Link copied to clipboard
abstract val lineLength: Int

Number of characters on each line.

Link copied to clipboard
abstract val nationality: FieldSpec

Position of the nationality.

Link copied to clipboard
abstract val rawNameField: FieldSpec

Position of the name field.

Link copied to clipboard
abstract val sex: FieldSpec

Position of the sex character.

Functions

Link copied to clipboard
open fun globalPositionOf(field: FieldSpec): Int

Returns the index of a field's first character in the lines joined without a separator.