Here are the examples of the csharp api class ZXing.PDF417.Internal.PDF417HighLevelEncoder.isText(char) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
0
1. Example
View licenseprivate static int determineConsecutiveTextCount(String msg, int startpos) { int len = msg.Length; int idx = startpos; while (idx < len) { char ch = msg[idx]; int numericCount = 0; while (numericCount < 13 && isDigit(ch) && idx < len) { numericCount++; idx++; if (idx < len) { ch = msg[idx]; } } if (numericCount >= 13) { return idx - startpos - numericCount; } if (numericCount > 0) { //Heuristic: All text-encodable chars or digits are binary encodable continue; } ch = msg[idx]; //Check if character is encodable if (!isText(ch)) { break; } idx++; } return idx - startpos; }
0
2. Example
View licenseprivate static int determineConsecutiveBinaryCount(String msg, byte[] bytes, int startpos) { /n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprivate static int determineConsecutiveTextCount(String msg, int startpos) { int len = msg.Length; int idx = startpos; while (idx < len) { char ch = msg[idx]; int numericCount = 0; while (numericCount < 13 && isDigit(ch) && idx < len) { numericCount++; idx++; if (idx < len) { ch = msg[idx]; } } if (numericCount >= 13) { return idx - startpos - numericCount; } if (numericCount > 0) { //Heuristic: All text-encodable chars or digits are binary encodable continue; } ch = msg[idx]; //Check if character is encodable if (!isText(ch)) { break; } idx++; } return idx - startpos; }
0
4. Example
View licenseprivate static int determineConsecutiveTextCount(String msg, int startpos) { int len = msg.Length; int idx = startpos; while (idx < len) { char ch = msg[idx]; int numericCount = 0; while (numericCount < 13 && isDigit(ch) && idx < len) { numericCount++; idx++; if (idx < len) { ch = msg[idx]; } } if (numericCount >= 13) { return idx - startpos - numericCount; } if (numericCount > 0) { //Heuristic: All text-encodable chars or digits are binary encodable continue; } ch = msg[idx]; //Check if character is encodable if (!isText(ch)) { break; } idx++; } return idx - startpos; }