You are here

private function IcuResFileDumper::writePadding in Plug 7

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

File

lib/Symfony/translation/Dumper/IcuResFileDumper.php, line 89

Class

IcuResFileDumper
IcuResDumper generates an ICU ResourceBundle formatted string representation of a message catalogue.

Namespace

Symfony\Component\Translation\Dumper

Code

private function writePadding($data) {
  $padding = strlen($data) % 4;
  if ($padding) {
    return str_repeat("", 4 - $padding);
  }
}