class GettextPO::FilePos
This class doesn’t provide the new class method. See also GettextPO::Message#filepos.
Public Instance Methods
Source
VALUE
gettextpo_po_filepos_m_file (VALUE self)
{
const char *file = po_filepos_file (DATA_PTR (self));
return file ? rb_str_new_cstr (file) : Qnil;
}
Possibly returns nil.
Source
VALUE
gettextpo_po_filepos_m_start_line (VALUE self)
{
size_t start_line = po_filepos_start_line (DATA_PTR (self));
return start_line == (size_t)(-1) ? Qnil : INT2NUM (start_line);
}
Possibly returns nil.