Lines Matching refs:enc
697 $enc = self::ENC_ASCII; // current encoding mode
704 $this->last_enc = $enc;
705 switch ($enc) {
714 $newenc = $this->lookAheadTest($data, $pos, $enc);
715 if ($newenc != $enc) {
717 $enc = $newenc;
718 $cw[] = $this->getSwitchEncodingCodeword($enc);
745 $set_id = $this->chset_id[$enc];
754 if ($enc == self::ENC_X12) {
772 } elseif (($enc == self::ENC_C40) AND isset($this->chset['S3C'][$chr])) {
775 } elseif (($enc == self::ENC_TXT) AND isset($this->chset['S3T'][$chr])) {
795 $newenc = $this->lookAheadTest($data, $pos, $enc);
796 if ($newenc != $enc) {
798 $enc = $newenc;
799 if ($enc != self::ENC_ASCII) {
804 $cw[] = $this->getSwitchEncodingCodeword($enc);
823 $enc = self::ENC_ASCII;
824 $this->last_enc = $enc;
833 $enc = self::ENC_ASCII;
834 $this->last_enc = $enc;
845 $enc = self::ENC_ASCII;
846 $this->last_enc = $enc;
849 if ($enc != self::ENC_ASCII) {
850 $enc = self::ENC_ASCII;
851 $this->last_enc = $enc;
852 $cw[] = $this->getSwitchEncodingCodeword($enc);
865 $newenc = $enc;
876 $enc = self::ENC_ASCII;
877 $cw[] = $this->getSwitchEncodingCodeword($enc);
889 $enc = self::ENC_ASCII;
890 $this->last_enc = $enc;
911 if ($enc == self::ENC_ASCII) {
923 $newenc = $this->lookAheadTest($data, $pos, $enc);
924 if ($newenc != $enc) {
926 $enc = $newenc;
953 } // end of switch enc