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

Method parseString

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

Parses a string in given range. << are replaced with ", ", < is replaced by space. @param range the range @return parsed string.

(MrzRange range)

Source from the content-addressed store, hash-verified

118 * @return parsed string.
119 */
120 public String parseString(MrzRange range) {
121 checkValidCharacters(range);
122 String str = rawValue(range);
123 while (str.endsWith("<")) {
124 str = str.substring(0, str.length() - 1);
125 }
126 return str.replace("" + FILLER + FILLER, ", ").replace(FILLER, ' ');
127 }
128
129 /**
130 * Verifies the check digit.

Callers 9

parseNameMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.95
fromMrzMethod · 0.80

Calls 3

checkValidCharactersMethod · 0.95
rawValueMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected