commit | e41e989b42c4f3ddda55b6c2068d14bf5aa7136c | [log] [tgz] |
---|---|---|
author | Steve Baird <baird@adacore.com> | Wed Jul 14 16:55:28 2021 -0700 |
committer | Pierre-Marie de Rodat <derodat@adacore.com> | Wed Sep 22 15:01:44 2021 +0000 |
tree | 644ac4687ebd306c42d88342659ab781fd21b052 | |
parent | 7e7c4aeb6e16dc367764a7bc028a9c4c6fc87449 [diff] |
[Ada] Improve performance for case-insensitive regular expressions gcc/ada/ * libgnat/s-regpat.adb (Match): Handle the case where Self.First is not NUL (so we know the first character we are looking for), but case-insensitive matching has been specified. (Optimize): In the case of an EXACTF Op, set Self.First as is done in the EXACT case, except with the addition of a call to Lower_Case.