You are here

private function PoFileDumper::escape in Plug 7

1 call to PoFileDumper::escape()
PoFileDumper::format in lib/Symfony/translation/Dumper/PoFileDumper.php
Transforms a domain of a message catalogue to its string representation.

File

lib/Symfony/translation/Dumper/PoFileDumper.php, line 57

Class

PoFileDumper
PoFileDumper generates a gettext formatted string representation of a message catalogue.

Namespace

Symfony\Component\Translation\Dumper

Code

private function escape($str) {
  return addcslashes($str, "\0..\37\"\\");
}