Class Index [+]

Quicksearch

Ferret

BitVector

 

Document-module: Ferret

See the README

Constants

FIELD_TYPES
I
VERSION
OBJECT_SPACE
EXCEPTION_MAP
FIX_INT_MAX

Public Class Methods

locale → locale_str click to toggle source

Returns a string corresponding to the locale set. For example;

   puts Ferret.locale #=> "en_US.UTF-8"
static VALUE frb_get_locale(VALUE self, VALUE locale)
{
    return (frb_locale ? rb_str_new2(frb_locale) : Qnil);
}
UTF-8" click to toggle source

Set the global locale. You should use this method to set different locales when indexing documents with different encodings.

static VALUE frb_set_locale(VALUE self, VALUE locale)
{
    char *l = ((locale == Qnil) ? NULL : rs2s(rb_obj_as_string(locale)));
    frb_locale = setlocale(LC_CTYPE, l);
    return frb_locale ? rb_str_new2(frb_locale) : Qnil;
}

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.