Method: U::String#word_break

Defined in:
ext/u/rb_u_string_word_break.c

#word_breakSymbol

Returns the word break property value of the characters of the receiver.

The possible word break values are

  • :aletter

  • :cr

  • :extend

  • :extendnumlet

  • :format

  • :katakana

  • :lf

  • :midletter

  • :midnum

  • :midnumlet

  • :newline

  • :numeric

  • :other

  • :regional_indicator

Returns:

  • (Symbol)

Raises:

  • (ArgumentError)

    If the string consists of more than one break type

See Also:



57
58
59
60
61
62
63
# File 'ext/u/rb_u_string_word_break.c', line 57

VALUE
rb_u_string_word_break(VALUE self)
{
        return _rb_u_string_property(self, "word break", U_WORD_BREAK_OTHER,
                                     (int (*)(uint32_t))u_char_word_break,
                                     (VALUE (*)(int))break_to_symbol);
}