Implements Gettext PO stream reader.
The PO file format parsing is implemented according to the documentation at http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files
Expanded class hierarchy of PoStreamReader
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PoStreamReader:: |
private | property | Parser context for the stream reader state machine. | |
PoStreamReader:: |
private | property | Current entry being read. Incomplete. | |
PoStreamReader:: |
private | property | Current plural index for plural translations. | |
PoStreamReader:: |
private | property | Array of translated error strings recorded on reading this stream so far. | |
PoStreamReader:: |
private | property | File handle of the current PO stream. | |
PoStreamReader:: |
private | property | Indicator of whether the stream reading is finished. | |
PoStreamReader:: |
private | property | The PO stream header. | |
PoStreamReader:: |
private | property | Language code for the PO stream being read. | |
PoStreamReader:: |
private | property | Object wrapper for the last read source/translation pair. | |
PoStreamReader:: |
private | property | Source line number of the stream being parsed. | |
PoStreamReader:: |
private | property | Size of the current PO stream. | |
PoStreamReader:: |
private | property | URI of the PO stream that is being read. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoStreamInterface::close(). Overrides PoStreamInterface:: |
|
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoMetadataInterface::getHeader(). Overrides PoMetadataInterface:: |
|
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoMetadataInterface::getLangcode(). Overrides PoMetadataInterface:: |
|
PoStreamReader:: |
public | function | Returns the pointer position of the current PO stream. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoStreamInterface::getURI(). Overrides PoStreamInterface:: |
|
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoStreamInterface::open(). Overrides PoStreamInterface:: |
|
PoStreamReader:: |
function | Parses a string in quotes. | ||
PoStreamReader:: |
private | function | Read the header from the PO stream. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoReaderInterface::readItem(). Overrides PoReaderInterface:: |
|
PoStreamReader:: |
private | function | Reads a line from the PO stream and stores data internally. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Overrides PoMetadataInterface:: |
|
PoStreamReader:: |
public | function | Store the parsed values as a PoItem object. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoMetadataInterface::setLangcode(). Overrides PoMetadataInterface:: |
|
PoStreamReader:: |
public | function | Sets the seek position for the current PO stream. | |
PoStreamReader:: |
public | function |
Implements Drupal\Component\Gettext\PoStreamInterface::setURI(). Overrides PoStreamInterface:: |
|
PoStreamReader:: |
private | function | Generates a short, one-string version of the passed comment array. |