basic_word_break_characters= (p1)
public
Sets the basic list of characters that signal a break between words for the
completer routine. The default is the characters which break words for
completion in Bash: “tn"\‘`@$><=;|&{(”.
Raises NotImplementedError if the
using readline library does not
support.
Raises SecurityError exception if $SAFE
is 4.
Show source static VALUE
readline_s_set_basic_word_break_characters(VALUE self, VALUE str)
{
static char *basic_word_break_characters = NULL;
rb_secure(4);
OutputStringValue(str);
if (basic_word_break_characters == NULL) {
basic_word_break_characters =
ALLOC_N(char, RSTRING_LEN(str) + 1);
}
else {
REALLOC_N(basic_word_break_characters, char, RSTRING_LEN(str) + 1);
}
strncpy(basic_word_break_characters,
RSTRING_PTR(str), RSTRING_LEN(str));
basic_word_break_characters[RSTRING_LEN(str)] = '\0';
rl_basic_word_break_characters = basic_word_break_characters;
return self;
}