Class MoFileParser
Parses file in MO format
Constants summary
-   floatMO_BIG_ENDIAN_MAGIC0xde120495
-   intMO_HEADER_SIZE28
-   floatMO_LITTLE_ENDIAN_MAGIC0x950412de
Method Summary
-  parse() publicParses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported. 
Method Detail
_readLong() protected
_readLong(mixed $stream, mixed $isBigEndian)
Reads an unsigned long from stream respecting endianess.
Parameters
-  resource$stream
- The File being read. 
-  bool$isBigEndian
- Whether or not the current platform is Big Endian 
Returns
intparse() public
parse(mixed $file)
Parses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported.
Parameters
-  string$file
- The file to be parsed. 
Returns
arrayList of messages extracted from the file
Throws
RuntimeExceptionIf stream content has an invalid format.
    © 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.0/class-Cake.I18n.Parser.MoFileParser.html