Function regex_syntax::is_word_character
source · [−]Expand description
Returns true if and only if the given character is a Unicode word character.
A Unicode word character is defined by
UTS#18 Annex C.
In particular, a character
is considered a word character if it is in either of the Alphabetic
or
Join_Control
properties, or is in one of the Decimal_Number
, Mark
or Connector_Punctuation
general categories.
Panics
If the unicode-perl
feature is not enabled, then this function panics.
For this reason, it is recommended that callers use
try_is_word_character
instead.