[Pcre-svn] [1121] code/trunk/pcre_jit_compile.c: pcre32: Add…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1121] code/trunk/pcre_jit_compile.c: pcre32: Add note about othercasebit only handling BMP characters for now
Revision: 1121
          http://vcs.pcre.org/viewvc?view=rev&revision=1121
Author:   chpe
Date:     2012-10-16 16:57:42 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: Add note about othercasebit only handling BMP characters for now

Modified Paths:
--------------
    code/trunk/pcre_jit_compile.c


Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2012-10-16 15:57:38 UTC (rev 1120)
+++ code/trunk/pcre_jit_compile.c    2012-10-16 15:57:42 UTC (rev 1121)
@@ -3529,6 +3529,10 @@
   othercasechar = cc + (othercasebit >> 8);
   othercasebit &= 0xff;
 #elif defined COMPILE_PCRE16 || defined COMPILE_PCRE32
+  /* Note that this code only handles characters in the BMP. If there
+  ever are characters outside the BMP whose othercase differs in only one 
+  bit from itself (there currently are none), this code will need to be
+  revised for COMPILE_PCRE32. */
   othercasechar = cc + (othercasebit >> 9);
   if ((othercasebit & 0x100) != 0)
     othercasebit = (othercasebit & 0xff) << 8;