original_string: public function parse($line)
      {
          $this->error = false;
          $this->currentTextLineContainer = $this->textLineContainers[$this->config->defaultTextLineContainer];
          $firsttag = clone ($this->currentTextLineContainer->tag);
  
          $this->str = preg_split($this->currentTextLineContainer->pattern, $line, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
          $this->end = count($this->str);
  
          if ($this->end > 1) {
              $pos = -1;
              $this->_parse($firsttag, $pos);
  
              return $firsttag->getContent();
          } else {
              $firsttag->addContentString($line);
  
              return $firsttag->getContent();
          }
      }
code: public function parse($line)
      {
          $this->error = false;
          $this->currentTextLineContainer = $this->textLineContainers[$this->config->defaultTextLineContainer];
          $firsttag = clone ($this->currentTextLineContainer->tag);
  
          $this->str = preg_split($this->currentTextLineContainer->pattern, $line, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
          $this->end = count($this->str);
  
          if ($this->end > 1) {
              $pos = -1;
              $this->_parse($firsttag, $pos);
  
              return $firsttag->getContent();
          } else {
              $firsttag->addContentString($line);
  
              return $firsttag->getContent();
          }
      }
code_tokens: public function parse ( $ line ) { $ this -> error = false ; $ this -> currentTextLineContainer = $ this -> textLineContainers [ $ this -> config -> defaultTextLineContainer ] ; $ firsttag = clone ( $ this -> currentTextLineContainer -> tag ) ; $ this -> str = preg_split ( $ this -> currentTextLineContainer -> pattern , $ line , - 1 , PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) ; $ this -> end = count ( $ this -> str ) ; if ( $ this -> end > 1 ) { $ pos = - 1 ; $ this -> _parse ( $ firsttag , $ pos ) ; return $ firsttag -> getContent ( ) ; } else { $ firsttag -> addContentString ( $ line ) ; return $ firsttag -> getContent ( ) ; } }
docstring: Main function which parses a line of wiki content.
  
  @param string $line a string containing wiki content, but without line feeds
  
  @return \WikiRenderer\Generator\InlineGeneratorInterface the line transformed to the target content
docstring_tokens: Main function which parses a line of wiki content .