Exemplo n.º 1
0
 /// <summary>
 /// Scan the input and generate the result.
 /// </summary>
 /// <returns>
 /// The result of the scan in format;
 /// 457508000
 /// 664371495 ERR
 /// 86110??36 ILL
 /// 
 /// Where "ERR" indicates that the ocr code did not pass the checksum
 /// algorithm and "ILL" that one or more digits where invalid.
 /// </returns>
 public string Scan()
 {
     using (var reader = new StringReader(input))
     {
         var result = new ScannerResultBuilder(reader);
         while (!reader.EOF())
             result.ReadOCR();
         return result.GetResult();
     }
 }