(RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
authorKenichi Handa <handa@m17n.org>
Thu, 15 Feb 2007 11:23:52 +0000 (11:23 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 15 Feb 2007 11:23:52 +0000 (11:23 +0000)
commitcf9c99bcf551d4a50b029f6fc766b7403c846dd5
tree32465f5419610ab16c4b2d96f992b390d66883ea
parentb13abc5d94ee9e85223cb620b91206bda70d7685
(RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
multibte.  Callers changed.
(RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
(MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Deleted.  Callers
changed to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE
respectively.
(SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
(SETUP_MULTIBYTE_RANGE): Generate more compact range_table.
(regex_compile): Make the compiled pattern usable both for
multibyte and unibyte targets.
(analyse_first): Make the fastmap usable both for multibyte and
unibyte targets.
(TRANSLATE_VIA_MULTIBYTE): Deleted.
(re_match_2_internal): Pay attention to the case that the
multibyteness of bufp and target may be different.
src/regex.c