private function _parseName(int &$offset): array
    {
        $idx = $offset;
        $names = array();
        while ($idx < $this->_len) {
            $names[] = $this->_parseNameComponent($idx);
            if ($idx >= $this->_len) {
                break;
            }
            $this->_skipWs($idx);
            if ("," != $this->_dn[$idx] && ";" != $this->_dn[$idx]) {
                break;
            }
            $idx++;
            $this->_skipWs($idx);
        }
        $offset = $idx;
        return array_reverse($names);
    }
private function _parseName(int &$offset): array
    {
        $idx = $offset;
        $names = array();
        while ($idx < $this->_len) {
            $names[] = $this->_parseNameComponent($idx);
            if ($idx >= $this->_len) {
                break;
            }
            $this->_skipWs($idx);
            if ("," != $this->_dn[$idx] && ";" != $this->_dn[$idx]) {
                break;
            }
            $idx++;
            $this->_skipWs($idx);
        }
        $offset = $idx;
        return array_reverse($names);
    }
private function _parseName ( int & $ offset ) : array { $ idx = $ offset ; $ names = array ( ) ; while ( $ idx < $ this -> _len ) { $ names [ ] = $ this -> _parseNameComponent ( $ idx ) ; if ( $ idx >= $ this -> _len ) { break ; } $ this -> _skipWs ( $ idx ) ; if ( "," != $ this -> _dn [ $ idx ] && ";" != $ this -> _dn [ $ idx ] ) { break ; } $ idx ++ ; $ this -> _skipWs ( $ idx ) ; } $ offset = $ idx ; return array_reverse ( $ names ) ; }
Parse 'name'.

name-component *("," name-component)

@param int $offset
@return array Array of name-components
Parse name .