Skip to content

Commit 3b2f9a1

Browse files
committed
Add "magical" chars to l1_char_class_tab.h
Some characters have special meaning to gv_magicalize(). This commit marks those in PL_charclass. This allows the next commit to more quickly than currently rule them out during processing.
1 parent 21722f8 commit 3b2f9a1

File tree

7 files changed

+202
-188
lines changed

7 files changed

+202
-188
lines changed

charclass_invlists.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492661,6 +492661,6 @@ static const U8 WB_dfa_table[] = {
492661492661
* 03640d8ad18fc65de766f2034a927f7442960e998d3243845ca9b9fe31bfe1ab lib/unicore/mktables
492662492662
* 8c30575264b2772c7a69c5bb6069a28f0e0a7a0df735871bde2d99ee674316ac lib/unicore/version
492663492663
* 0a6b5ab33bb1026531f816efe81aea1a8ffcd34a27cbea37dd6a70a63d73c844 regen/charset_translations.pl
492664-
* c7ff8e0d207d3538c7feb4a1a152b159e5e902d20293b303569ea8323e84633e regen/mk_PL_charclass.pl
492664+
* 6c52efdee47313cfde75ff86376008ce53320ebc93176caab45c77ce086a256d regen/mk_PL_charclass.pl
492665492665
* 20a6e3d507a66f4594586485568134873485b08e23383f3dc4e6b3047569267b regen/mk_invlists.pl
492666492666
* ex: set ro ft=c: */

handy.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,9 @@ or casts
15421542
# define CC_BINDIGIT_ 23
15431543
# define CC_OCTDIGIT_ 24
15441544
# define CC_MNEMONIC_CNTRL_ 25
1545+
# define CC_MAGICAL_ 26
15451546

1546-
/* Unused: 26-31
1547+
/* Unused: 27-31
15471548
* If more bits are needed, one could add a second word for non-64bit
15481549
* QUAD_IS_INT systems, using some #ifdefs to distinguish between having a 2nd
15491550
* word or not. The IS_IN_SOME_FOLD bit is the most easily expendable, as it

l1_char_class_tab.h

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.

lib/unicore/uni_keywords.pl

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/mk_PL_charclass.pl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@
5656
# These are the control characters that there are mnemonics for
5757
MNEMONIC_CNTRL => [ ord "\a", ord "\b", ord "\e", ord "\f",
5858
ord "\n", ord "\r", ord "\t" ],
59+
MAGICAL => [ 001, 003, 004, 005, 006, 007, 010, 011, 014, 015,
60+
016, 017, 020, 023, 024, 025, 026, 027,
61+
ord('0'), ord('1'), ord('2'), ord('3'), ord('4'),
62+
ord('5'), ord('6'), ord('7'), ord('8'), ord('9'),
63+
ord('a'), ord('b'),
64+
ord('A'), ord('E'), ord('I'), ord('S'), ord('V'),
65+
ord('!'), ord('#'), ord('%'), ord('&'), ord('('),
66+
ord(')'), ord('*'), ord('+'), ord('-'), ord('.'),
67+
ord('/'), ord(';'), ord(':'), ord('<'), ord('='),
68+
ord('>'), ord('?'), ord('['), ord('\''), ord('\\'),
69+
ord(']'), ord('^'), ord('`'), ord('|'), ord('~'),
70+
ord('$'),
71+
],
5972
);
6073

6174
sub uniques {

regexp_constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@
8282
* 03640d8ad18fc65de766f2034a927f7442960e998d3243845ca9b9fe31bfe1ab lib/unicore/mktables
8383
* 8c30575264b2772c7a69c5bb6069a28f0e0a7a0df735871bde2d99ee674316ac lib/unicore/version
8484
* 0a6b5ab33bb1026531f816efe81aea1a8ffcd34a27cbea37dd6a70a63d73c844 regen/charset_translations.pl
85-
* c7ff8e0d207d3538c7feb4a1a152b159e5e902d20293b303569ea8323e84633e regen/mk_PL_charclass.pl
85+
* 6c52efdee47313cfde75ff86376008ce53320ebc93176caab45c77ce086a256d regen/mk_PL_charclass.pl
8686
* 20a6e3d507a66f4594586485568134873485b08e23383f3dc4e6b3047569267b regen/mk_invlists.pl
8787
* ex: set ro ft=c: */

uni_keywords.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)