Lines Matching refs:ch

63     FX_WCHAR ch = (FX_WCHAR)(bytes.GetAt(i) & 0xff);  in encodeHighLevel()  local
64 if (ch == '?' && bytes.GetAt(i) != '?') { in encodeHighLevel()
68 msg += ch; in encodeHighLevel()
158 FX_WCHAR ch = msg.GetAt(startpos + idx); in encodeText() local
161 if (isAlphaUpper(ch)) { in encodeText()
162 if (ch == ' ') { in encodeText()
165 tmp += (FX_WCHAR)(ch - 65); in encodeText()
168 if (isAlphaLower(ch)) { in encodeText()
172 } else if (isMixed(ch)) { in encodeText()
178 tmp += PUNCTUATION[ch]; in encodeText()
184 if (isAlphaLower(ch)) { in encodeText()
185 if (ch == ' ') { in encodeText()
188 tmp += (FX_WCHAR)(ch - 97); in encodeText()
191 if (isAlphaUpper(ch)) { in encodeText()
193 tmp += (FX_WCHAR)(ch - 65); in encodeText()
195 } else if (isMixed(ch)) { in encodeText()
201 tmp += PUNCTUATION[ch]; in encodeText()
207 if (isMixed(ch)) { in encodeText()
208 tmp += MIXED[ch]; in encodeText()
210 if (isAlphaUpper(ch)) { in encodeText()
214 } else if (isAlphaLower(ch)) { in encodeText()
228 tmp += PUNCTUATION[ch]; in encodeText()
233 if (isPunctuation(ch)) { in encodeText()
234 tmp += PUNCTUATION[ch]; in encodeText()
295 int32_t ch = bytes->GetAt(i) & 0xff; in encodeBinary() local
296 sb += (FX_WCHAR)ch; in encodeBinary()
322 FX_BOOL CBC_PDF417HighLevelEncoder::isDigit(FX_WCHAR ch) { in isDigit() argument
323 return ch >= '0' && ch <= '9'; in isDigit()
325 FX_BOOL CBC_PDF417HighLevelEncoder::isAlphaUpper(FX_WCHAR ch) { in isAlphaUpper() argument
326 return ch == ' ' || (ch >= 'A' && ch <= 'Z'); in isAlphaUpper()
328 FX_BOOL CBC_PDF417HighLevelEncoder::isAlphaLower(FX_WCHAR ch) { in isAlphaLower() argument
329 return ch == ' ' || (ch >= 'a' && ch <= 'z'); in isAlphaLower()
331 FX_BOOL CBC_PDF417HighLevelEncoder::isMixed(FX_WCHAR ch) { in isMixed() argument
332 return MIXED[ch] != -1; in isMixed()
334 FX_BOOL CBC_PDF417HighLevelEncoder::isPunctuation(FX_WCHAR ch) { in isPunctuation() argument
335 return PUNCTUATION[ch] != -1; in isPunctuation()
337 FX_BOOL CBC_PDF417HighLevelEncoder::isText(FX_WCHAR ch) { in isText() argument
338 return ch == '\t' || ch == '\n' || ch == '\r' || (ch >= 32 && ch <= 126); in isText()
347 FX_WCHAR ch = msg.GetAt(idx); in determineConsecutiveDigitCount() local
348 while (isDigit(ch) && idx < len) { in determineConsecutiveDigitCount()
352 ch = msg.GetAt(idx); in determineConsecutiveDigitCount()
364 FX_WCHAR ch = msg.GetAt(idx); in determineConsecutiveTextCount() local
366 while (numericCount < 13 && isDigit(ch) && idx < len) { in determineConsecutiveTextCount()
370 ch = msg.GetAt(idx); in determineConsecutiveTextCount()
379 ch = msg.GetAt(idx); in determineConsecutiveTextCount()
380 if (!isText(ch)) { in determineConsecutiveTextCount()
395 FX_WCHAR ch = msg.GetAt(idx); in determineConsecutiveBinaryCount() local
397 while (numericCount < 13 && isDigit(ch)) { in determineConsecutiveBinaryCount()
403 ch = msg.GetAt(i); in determineConsecutiveBinaryCount()
409 while (textCount < 5 && isText(ch)) { in determineConsecutiveBinaryCount()
415 ch = msg.GetAt(i); in determineConsecutiveBinaryCount()
420 ch = msg.GetAt(idx); in determineConsecutiveBinaryCount()
421 if (bytes->GetAt(idx) == 63 && ch != '?') { in determineConsecutiveBinaryCount()