summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-06 19:09:26 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-09 12:08:28 -0700
commit84238efa57ee5bd0c534c701223190690177340a (patch)
treec5ea7c8c6dd9287827ecf5385040a4bd7508e43f /handy.h
parent73104a1bf93a1964caf4bdec1c9d6360b52f14e4 (diff)
downloadperl-84238efa57ee5bd0c534c701223190690177340a.tar.gz
handy.h: Add comment
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 52af831ace..b9e5f891af 100644
--- a/handy.h
+++ b/handy.h
@@ -1133,6 +1133,14 @@ EXTCONST U32 PL_charclass[];
? function(p) \
: 0)
+/* NOTE that some of these macros have very similar ones in regcharclass.h.
+ * For example, there is (at the time of this writing) an 'is_SPACE_utf8()'
+ * there, differing in name only by an underscore from the one here
+ * 'isSPACE_utf8(). The difference is that the ones here are probably more
+ * efficient and smaller, using an O(1) array lookup for Latin1-range code
+ * points; the regcharclass.h ones are implemented as a series of
+ * "if-else-if-else ..." */
+
#define isALNUMC_utf8(p) _generic_utf8(_CC_ALNUMC, is_utf8_alnumc, p)
#define isALNUM_utf8(p) isWORDCHAR_utf8(p) /* back compat */
#define isALPHA_utf8(p) _generic_utf8(_CC_ALPHA, is_utf8_alpha, p)