You are here

private function IcuResFileDumper::writePadding in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Dumper/IcuResFileDumper.php \Symfony\Component\Translation\Dumper\IcuResFileDumper::writePadding()
1 call to IcuResFileDumper::writePadding()
IcuResFileDumper::format in vendor/symfony/translation/Dumper/IcuResFileDumper.php
Transforms a domain of a message catalogue to its string representation.

File

vendor/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);
  }
}