comparison vendor/symfony/translation/Dumper/IcuResFileDumper.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
50 ; 50 ;
51 } 51 }
52 52
53 $resOffset = $this->getPosition($data); 53 $resOffset = $this->getPosition($data);
54 54
55 $data .= pack('v', count($messages)) 55 $data .= pack('v', count($messages->all($domain)))
56 .$indexes 56 .$indexes
57 .$this->writePadding($data) 57 .$this->writePadding($data)
58 .$resources 58 .$resources
59 ; 59 ;
60 60
61 $bundleTop = $this->getPosition($data); 61 $bundleTop = $this->getPosition($data);
62 62
63 $root = pack('V7', 63 $root = pack('V7',
64 $resOffset + (2 << 28), // Resource Offset + Resource Type 64 $resOffset + (2 << 28), // Resource Offset + Resource Type
65 6, // Index length 65 6, // Index length
66 $keyTop, // Index keys top 66 $keyTop, // Index keys top
67 $bundleTop, // Index resources top 67 $bundleTop, // Index resources top
68 $bundleTop, // Index bundle top 68 $bundleTop, // Index bundle top
69 count($messages), // Index max table length 69 count($messages->all($domain)), // Index max table length
70 0 // Index attributes 70 0 // Index attributes
71 ); 71 );
72 72
73 $header = pack('vC2v4C12@32', 73 $header = pack('vC2v4C12@32',
74 32, // Header size 74 32, // Header size
75 0xDA, 0x27, // Magic number 1 and 2 75 0xDA, 0x27, // Magic number 1 and 2