Methods
- hash_string
- load
- load_from_file
- load_from_stream
- new
- next_prime
- open
- prime?
- save_to_file
- save_to_stream
- set_comment
- update!
Classes and Modules
Class MOFile::InvalidFormatConstants
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 |
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.] |
Attributes
[R] | charset | |
[R] | filename | |
[RW] | last_modified | |
[RW] | little_endian | |
[R] | nplurals | |
[RW] | path | |
[R] | plural |
Public Class methods
new(output_charset = nil)
[ source ]
open(arg = nil, output_charset = nil)
[ source ]
Public Instance methods
hash_string(str)
[ source ]
load(arg)
[ source ]
load_from_file(filename)
[ source ]
load_from_stream(io)
[ source ]
next_prime(seed)
[ source ]
From gettext-0.12.1/gettext-tools/lib/hash.c
prime?(candidate)
[ source ]
From gettext-0.12.1/gettext-tools/lib/hash.c
save_to_file(filename)
[ source ]
save_to_stream(io)
[ source ]
set_comment(msgid_or_sym, comment)
[ source ]
update!()
[ source ]