C# Class NGettext.Loaders.MoFileParser

MO file format parser. See http://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
显示文件 Open project: neris/NGettext Class Usage Examples

Public Methods

Method Description
MoFileParser ( ) : System

Initializes a new instance of the MoFileParser class with UTF-8 as default encoding and with enabled automatic encoding detection.

MoFileParser ( Encoding defaultEncoding, bool autoDetectEncoding = true ) : System

Initializes a new instance of the MoFileParser class using given default encoding and given automatic encoding detection option.

Parse ( Stream stream ) : MoFile

Parses a GNU MO file from the given stream and loads all available data.

http://www.gnu.org/software/gettext/manual/html_node/MO-Files.html

Private Methods

Method Description
_ReadStrings ( BinaryReader reader, int offset, int length, Encoding encoding ) : string[]
_ReverseBytes ( uint value ) : uint

Method Details

MoFileParser() public method

Initializes a new instance of the MoFileParser class with UTF-8 as default encoding and with enabled automatic encoding detection.
public MoFileParser ( ) : System
return System

MoFileParser() public method

Initializes a new instance of the MoFileParser class using given default encoding and given automatic encoding detection option.
public MoFileParser ( Encoding defaultEncoding, bool autoDetectEncoding = true ) : System
defaultEncoding System.Text.Encoding
autoDetectEncoding bool
return System

Parse() public method

Parses a GNU MO file from the given stream and loads all available data.
http://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
public Parse ( Stream stream ) : MoFile
stream Stream Stream that contain binary data in the MO file format
return MoFile