MrzSexCharacterX

data class MrzSexCharacterX(val observed: Char, val position: Int) : MrzWarning

Warning: the sex character is X.

Reported by the validator. ICAO lists X for the visual zone only, but some issuers print it in the MRZ. The parsed Sex is UNSPECIFIED, and CommonFields.rawSex keeps the X.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(observed: Char, position: Int)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the position and the rule. It never contains the character; that is in observed.

Link copied to clipboard

The sex character as printed. Always 'X'.

Link copied to clipboard

Zero-based index of the character across the lines joined with no separator.

Functions

Link copied to clipboard
open override fun toString(): String

MrzSexCharacterX: followed by description, so logs carry no document values.