@@ -299,9 +299,9 @@ static int re_match(ReCompiled *pRe, const unsigned char *zIn, int nIn){
299299 }
300300 case RE_OP_CC_EXC : {
301301 if ( c == 0 ) break ;
302- /* fall-through */
302+ /* fall-through */ goto re_op_cc_inc ;
303303 }
304- case RE_OP_CC_INC : {
304+ case RE_OP_CC_INC : re_op_cc_inc : {
305305 int j = 1 ;
306306 int n = pRe -> aArg [x ];
307307 int hit = 0 ;
@@ -685,7 +685,7 @@ static const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){
685685 pRe -> zInit [j ++ ] = (unsigned char )(0xc0 | (x >>6 ));
686686 pRe -> zInit [j ++ ] = 0x80 | (x & 0x3f );
687687 }else if ( x <=0xffff ){
688- pRe -> zInit [j ++ ] = (unsigned char )(0xd0 | (x >>12 ));
688+ pRe -> zInit [j ++ ] = (unsigned char )(0xe0 | (x >>12 ));
689689 pRe -> zInit [j ++ ] = 0x80 | ((x >>6 )& 0x3f );
690690 pRe -> zInit [j ++ ] = 0x80 | (x & 0x3f );
691691 }else {
@@ -759,15 +759,15 @@ int sqlite3_regexp_init(
759759 int rc = SQLITE_OK ;
760760 SQLITE_EXTENSION_INIT2 (pApi );
761761 (void )pzErrMsg ; /* Unused */
762- rc = sqlite3_create_function (db , "regexp" , 2 ,
763- SQLITE_UTF8 |SQLITE_INNOCUOUS |SQLITE_DETERMINISTIC ,
764- 0 , re_sql_func , 0 , 0 );
762+ rc = sqlite3_create_function (db , "regexp" , 2 ,
763+ SQLITE_UTF8 |SQLITE_INNOCUOUS |SQLITE_DETERMINISTIC ,
764+ 0 , re_sql_func , 0 , 0 );
765765 if ( rc == SQLITE_OK ){
766766 /* The regexpi(PATTERN,STRING) function is a case-insensitive version
767767 ** of regexp(PATTERN,STRING). */
768768 rc = sqlite3_create_function (db , "regexpi" , 2 ,
769- SQLITE_UTF8 |SQLITE_INNOCUOUS |SQLITE_DETERMINISTIC ,
770- (void * )db , re_sql_func , 0 , 0 );
769+ SQLITE_UTF8 |SQLITE_INNOCUOUS |SQLITE_DETERMINISTIC ,
770+ (void * )db , re_sql_func , 0 , 0 );
771771 }
772772 return rc ;
773773}
0 commit comments