Lines Matching defs:mode

175 	 * Basic set of characters for each encodation mode.
458 * Returns true if the char belongs to the selected mode
460 * @param $mode (int) Current encoding mode.
461 * @return boolean true if the char is of the selected mode.
464 protected function isCharMode($chr, $mode) {
466 switch ($mode) {
504 * The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S).
507 * @param $mode (int) current encoding mode
508 * @return int encoding mode
511 protected function lookAheadTest($data, $pos, $mode) {
514 return $mode;
518 if ($mode == self::ENC_ASCII) {
522 $numch[$mode] = 0;
636 * Get the switching codeword to a new encoding mode (latch codeword)
637 * @param $mode (int) New encoding mode.
641 protected function getSwitchEncodingCodeword($mode) {
642 switch ($mode) {
697 $enc = self::ENC_ASCII; // current encoding mode
708 // 1. If the next data sequence is at least 2 consecutive digits, encode the next two digits as a double digit in ASCII mode.
713 // 2. If the look-ahead test (starting at step J) indicates another mode, switch to that mode.
725 // 3. If the next data character is extended ASCII (greater than 127) encode it in ASCII mode first using the Upper Shift (value 235) character.
794 // 1. If the C40 encoding is at the point of starting a new double symbol character and if the look-ahead test (starting at step J) indicates another mode, switch to that mode.
912 break; // exit from EDIFACT mode
925 // 1. If the look-ahead test (starting at step J) indicates another mode, switch to that mode.
927 break; // exit from B256 mode