MCPcopy Create free account
hub / github.com/ZsBT/mrz-java / checkDigit

Method checkDigit

src/main/java/com/innovatrics/mrz/MrzParser.java:137–139  ·  view source on GitHub ↗

Verifies the check digit. @param col the 0-based column of the check digit. @param row the 0-based column of the check digit. @param strRange the range for which the check digit is computed. @param fieldName (optional) field name. Used only when validity check fails. @return true if check digit is v

(int col, int row, MrzRange strRange, String fieldName)

Source from the content-addressed store, hash-verified

135 * @return true if check digit is valid, false if not
136 */
137 public boolean checkDigit(int col, int row, MrzRange strRange, String fieldName) {
138 return checkDigit(col, row, rawValue(strRange), fieldName);
139 }
140
141 /**
142 * Verifies the check digit.

Callers 7

fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95

Calls 2

rawValueMethod · 0.95
computeCheckDigitMethod · 0.95

Tested by

no test coverage detected