Class GetText::MOFile
In: lib/gettext/mofile.rb
Parent: Hash

Methods

Classes and Modules

Class GetText::MOFile::HeaderRev1
Class GetText::MOFile::InvalidFormat

Constants

Header = Struct.new(:magic, :revision, :nstrings, :orig_table_offset, :translated_table_offset, :hash_table_size, :hash_table_offset)
MAGIC_BIG_ENDIAN = "\x95\x04\x12\xde"
MAGIC_LITTLE_ENDIAN = "\xde\x12\x04\x95"
HASHWORDBITS = 32

Attributes

charset  [R] 
filename  [R] 
last_modified  [RW] 
little_endian  [RW] 
nplurals  [R] 
path  [RW] 
plural  [R] 

Public Class methods

Public Instance methods

From gettext-0.12.1/gettext-runtime/intl/hash-string.h Defines the so called `hashpjw’ function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.]

Save data as little endian format.

[Validate]