reg_namedseq: Restructure so doesn't duplicate code
authorKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 16:25:17 +0000 (10:25 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 18:16:12 +0000 (12:16 -0600)
commite2a7e16564e5652c046ec138d11bfa77e7c86836
treee0d2fb7425a57217663e09e894580464d92d9ea9
parent9d64099bb0a1ca98620e6124baa4038dd20cf89e
reg_namedseq: Restructure so doesn't duplicate code

This routine now calls reg() recursively after converting the parse
to something the rest of the code understands.  This eliminates
duplicated code, and allows for uniform treatment of code points, as
things were getting out of sync.  It also eliminates the restrction on
how many characters a named sequence can expand to.

toke now converts its input (which is in Unicode terms) to native on
EBCDIC platforms, so the rest of the code can can continue to ignore
that.

The restriction on the length of the number of characters a named
sequence is hereby removed, because reg() handles that.
pod/perldiag.pod
regcomp.c
t/re/pat_advanced.t
t/re/re_tests
toke.c