[libstdc++/71500] make back reference work with icase
Tim Shen via libstdc++
libstdc++@gcc.gnu.org
Mon Sep 4 10:31:00 GMT 2017
This fixes the follow-up comments in 71500.
Back-reference matching is different from other matching, as the
content the back-reference refers to is at "run-time", aka during
regex_match(), not regex() compilation.
For compilation we do have an abstraction layer to catch all
comparison customizations, namely _M_translator in regex_compiler.h.
Until this patch, we don't have an abstraction for "run-time"
matching. I believe that back-reference is the only place that needs
run-time matching, so I just build a _Backref_matcher in
regex_executot.tcc.
Tested on x86_64-linux-gnu.
Thanks!
--
Regards,
Tim Shen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.diff
Type: text/x-patch
Size: 3597 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170904/4cbd971e/attachment.bin>
More information about the Libstdc++
mailing list