From dddecdc7da8164c7ee5732195847b5ee1cfb9e36 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 9 May 2011 09:03:13 -0600 Subject: [PATCH] regex: Add comments --- regcharclass.h | 2 +- regcomp.c | 7 ++++--- regen/regcharclass.pl | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/regcharclass.h b/regcharclass.h index 47d4b41..924841f 100644 --- a/regcharclass.h +++ b/regcharclass.h @@ -359,7 +359,7 @@ 0x2029 == cp ) ) ) ) ) ) /* - TRICKYFOLD: Problematic fold case letters. + TRICKYFOLD: Problematic fold case letters. When adding to this list, also should add them to regcomp.c and fold_grind.t 0x00DF # LATIN SMALL LETTER SHARP S 0x0390 # GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS diff --git a/regcomp.c b/regcomp.c index b9730f9..f074aca 100644 --- a/regcomp.c +++ b/regcomp.c @@ -8872,13 +8872,14 @@ tryagain: break; /* These are the tricky fold characters. Flush any - * buffer first. */ + * buffer first. (When adding to this list, also should + * add them to fold_grind.t to make sure get tested) */ case GREEK_SMALL_LETTER_UPSILON_WITH_DIALYTIKA_AND_TONOS: case GREEK_SMALL_LETTER_IOTA_WITH_DIALYTIKA_AND_TONOS: case LATIN_SMALL_LETTER_SHARP_S: case LATIN_CAPITAL_LETTER_SHARP_S: - case 0x1FD3: - case 0x1FE3: + case 0x1FD3: /* GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA */ + case 0x1FE3: /* GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA */ if (len != 0) { p = oldp; goto loopdone; diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl index a640a39..5d7789c 100755 --- a/regen/regcharclass.pl +++ b/regen/regcharclass.pl @@ -729,7 +729,7 @@ VERTWS: Vertical Whitespace: \v \V 0x2029 # PARAGRAPH SEPARATOR -TRICKYFOLD: Problematic fold case letters. +TRICKYFOLD: Problematic fold case letters. When adding to this list, also should add them to regcomp.c and fold_grind.t => generic cp generic-cp generic-both :fast safe 0x00DF # LATIN SMALL LETTER SHARP S 0x0390 # GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS -- 2.7.4