summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-08-28 15:25:48 -0600
committerKarl Williamson <public@khwilliamson.com>2012-08-28 16:24:47 -0600
commit27d4fc33343f0dd4287f0e7b9e6b4ff67c5d8399 (patch)
treef9b098ce06e0da7f0285f9b34c59edd1dec2168a /embed.fnc
parent9914684df30835d5561d6d2a768b82e5d8cb535b (diff)
downloadperl-27d4fc33343f0dd4287f0e7b9e6b4ff67c5d8399.tar.gz
Refactor \X regex handling to avoid a typical case table lookup
Prior to this commit 98.4% of Unicode code points that went through \X had to be looked up to see if they begin a grapheme cluster; then looked up again to find that they didn't require special handling. This commit refactors things so only one look-up is required for those 98.4%. It changes the table generated by mktables to accomplish this, and hence the name of it, and references to it are changed to correspond.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index e92dc0c3dc..290067c44b 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -660,9 +660,9 @@ ApR |bool |is_utf8_print |NN const U8 *p
ApR |bool |is_utf8_punct |NN const U8 *p
ApR |bool |is_utf8_xdigit |NN const U8 *p
ApR |bool |is_utf8_mark |NN const U8 *p
-EXpR |bool |is_utf8_X_begin |NN const U8 *p
EXpR |bool |is_utf8_X_extend |NN const U8 *p
EXpR |bool |is_utf8_X_prepend |NN const U8 *p
+EXpR |bool |is_utf8_X_regular_begin|NN const U8 *p
EXpR |bool |is_utf8_X_special_begin|NN const U8 *p
EXpR |bool |is_utf8_X_L |NN const U8 *p
EXpR |bool |is_utf8_X_RI |NN const U8 *p