private function setParseB($text, &$currentMode) {
        $tmp = preg_quote($this->keysB, '/');

        $match = array();
        if (preg_match('/[^' . $tmp . ']/', $text, $match) === 1) {
            // We found something not allowed
            throw new CINParseException('code128', 'The text "' . $text . '" can\'t be parsed with the Table B. The character "' . $match[0] . '" is not allowed.');
        } else {
            $latch = ($currentMode === 'B') ? '' : '1';
            $currentMode = 'B';

            return $latch . $this->getSequenceParsed($text, $currentMode);
        }
    }
private function setParseB($text, &$currentMode) {
        $tmp = preg_quote($this->keysB, '/');

        $match = array();
        if (preg_match('/[^' . $tmp . ']/', $text, $match) === 1) {
            // We found something not allowed
            throw new CINParseException('code128', 'The text "' . $text . '" can\'t be parsed with the Table B. The character "' . $match[0] . '" is not allowed.');
        } else {
            $latch = ($currentMode === 'B') ? '' : '1';
            $currentMode = 'B';

            return $latch . $this->getSequenceParsed($text, $currentMode);
        }
    }
private function setParseB ( $ text , & $ currentMode ) { $ tmp = preg_quote ( $ this -> keysB , '/' ) ; $ match = array ( ) ; if ( preg_match ( '/[^' . $ tmp . ']/' , $ text , $ match ) === 1 ) { // We found something not allowed
 throw new CINParseException ( 'code128' , 'The text "' . $ text . '" can\'t be parsed with the Table B. The character "' . $ match [ 0 ] . '" is not allowed.' ) ; } else { $ latch = ( $ currentMode === 'B' ) ? '' : '1' ; $ currentMode = 'B' ; return $ latch . $ this -> getSequenceParsed ( $ text , $ currentMode ) ; } }
Parses the text and returns the appropriate sequence for the Table B.

@param string $text
@param string $currentMode
@return string
Parses the text and returns the appropriate sequence for the Table B .