instance method
Regexp#casefold?
() -> bool
casefold?→ true or false
re.c
View on GitHub ↗
static VALUE
rb_reg_casefold_p(VALUE re)
{
rb_reg_check(re);
return RBOOL(RREGEXP_PTR(re)->options & ONIG_OPTION_IGNORECASE);
}
Returns true if the case-insensitivity flag in self is set, false otherwise:
Example
/a/.casefold? # => false /a/i.casefold? # => true /(?i:a)/.casefold? # => false