[Pcre-svn] [1375] code/trunk: +1 is not needed for XCLASS as…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1375] code/trunk: +1 is not needed for XCLASS as well.
Revision: 1375
          http://vcs.pcre.org/viewvc?view=rev&revision=1375
Author:   zherczeg
Date:     2013-10-12 18:56:40 +0100 (Sat, 12 Oct 2013)


Log Message:
-----------
+1 is not needed for XCLASS as well.

Modified Paths:
--------------
    code/trunk/pcre_compile.c
    code/trunk/testdata/testinput4
    code/trunk/testdata/testoutput4


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2013-10-12 15:49:48 UTC (rev 1374)
+++ code/trunk/pcre_compile.c    2013-10-12 17:56:40 UTC (rev 1375)
@@ -3333,7 +3333,7 @@
 #if defined SUPPORT_UTF || !defined COMPILE_PCRE8
       case OP_XCLASS:
       if (list_ptr != list) return FALSE;   /* Class is first opcode */
-      if (PRIV(xclass)(chr, code - list_ptr[2] + 1 + LINK_SIZE, utf))
+      if (PRIV(xclass)(chr, code - list_ptr[2] + LINK_SIZE, utf))
         return FALSE;
       break;
 #endif


Modified: code/trunk/testdata/testinput4
===================================================================
--- code/trunk/testdata/testinput4    2013-10-12 15:49:48 UTC (rev 1374)
+++ code/trunk/testdata/testinput4    2013-10-12 17:56:40 UTC (rev 1375)
@@ -711,4 +711,7 @@
     \x{100}\x{100}\x{100}\x{100}
     \x{100}\x{100}\x{100}


+/^a+[a\x{200}]/8BZ
+    aa
+
 /-- End of testinput4 --/


Modified: code/trunk/testdata/testoutput4
===================================================================
--- code/trunk/testdata/testoutput4    2013-10-12 15:49:48 UTC (rev 1374)
+++ code/trunk/testdata/testoutput4    2013-10-12 17:56:40 UTC (rev 1375)
@@ -1257,4 +1257,16 @@
     \x{100}\x{100}\x{100}
 No match


+/^a+[a\x{200}]/8BZ
+------------------------------------------------------------------
+        Bra
+        ^
+        a+
+        [a\x{200}]
+        Ket
+        End
+------------------------------------------------------------------
+    aa
+ 0: aa
+
 /-- End of testinput4 --/