summaryrefslogtreecommitdiff
path: root/pcre_tables.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-16 15:48:03 +0000
committerzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-16 15:48:03 +0000
commit6f209d5f91b2eaaedefbbd9093f992e13cdf2d98 (patch)
tree8af9d0abddc74d901ded0b86514d9db2629dd152 /pcre_tables.c
parent8fcc1628b61893fa9719c1f8ae8a032494b98946 (diff)
downloadpcre-6f209d5f91b2eaaedefbbd9093f992e13cdf2d98.tar.gz
Support OP_ANYBYTE in JIT when utf8 is disabled and optimizing utf8 character length computation
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@736 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_tables.c')
-rw-r--r--pcre_tables.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/pcre_tables.c b/pcre_tables.c
index ab12b48..45c2211 100644
--- a/pcre_tables.c
+++ b/pcre_tables.c
@@ -88,25 +88,15 @@ const uschar _pcre_utf8_table4[] = {
3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 };
#ifdef SUPPORT_JIT
-/* Full table of the number of extra bytes. See _pcre_utf8_table4 above. */
+/* Full table of the number of extra bytes when the
+character code is greater or equal than 0xc0.
+See _pcre_utf8_table4 above. */
const uschar _pcre_utf8_char_sizes[] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,
+ 3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,
};
#endif