Parses file in MO format
int 0xde120495
Magic used for validating the format of a MO file as well as detecting if the machine used to create that file was big endian.
int 28
The size of the header of a MO file in bytes.
int 0x950412de
Magic used for validating the format of a MO file as well as detecting if the machine used to create that file was little endian.
Reads an unsigned long from stream respecting endianess.
Parses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported.
_readLong(resource $stream, bool $isBigEndian): int
Reads an unsigned long from stream respecting endianess.
resource $stream The File being read.
bool $isBigEndian Whether the current platform is Big Endian
intparse(string $file): array
Parses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported.
string $file The file to be parsed.
arrayRuntimeException
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.I18n.Parser.MoFileParser.html