You are here

public function PoStreamReader::readItem in Localization update 7.2

Implements PoReaderInterface::readItem().

Overrides PoReaderInterface::readItem

1 call to PoStreamReader::readItem()
PoStreamReader::readHeader in includes/gettext/PoStreamReader.php
Read the header from the PO stream.

File

includes/gettext/PoStreamReader.php, line 189
Contains \Drupal\Component\Gettext\PoStreamReader.

Class

PoStreamReader
Implements Gettext PO stream reader.

Code

public function readItem() {

  // Clear out the last item.
  $this->_last_item = NULL;

  // Read until finished with the stream or a complete item was identified.
  while (!$this->_finished && is_null($this->_last_item)) {
    $this
      ->readLine();
  }
  return $this->_last_item;
}