This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor constructing EXACTish nodes
authorKarl Williamson <khw@cpan.org>
Wed, 7 Nov 2018 00:31:21 +0000 (17:31 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 17:48:18 +0000 (10:48 -0700)
commite2fd06413d9a59faa671e09a6c1b3259b8f406e3
tree1d8fc17d9d7da13ee9b7d8a34a6986e36a74853e
parent401135611bab46c53f48203f950ce631f2f05308
regcomp.c: Refactor constructing EXACTish nodes

The previous commits have allowed us to refactor this to eliminate
redundancies.

Previously, the same logic was done separately for UTF-8 and non-UTF-8
patterns.  This refactors so the logic is done once.  The details differ
for UTF-8 and non-UTF-8.  So that's where the differences lie, in the
details without having to duplicate the logic.
regcomp.c