[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.57,2.58

Fredrik Lundh effbot@users.sourceforge.net
2001年7月02日 10:04:50 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv2526/Modules
Modified Files:
	_sre.c 
Log Message:
pythonware repository roundtrip (untabification)
Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.57
retrieving revision 2.58
diff -C2 -r2.57 -r2.58
*** _sre.c	2001年07月02日 16:58:38	2.57
--- _sre.c	2001年07月02日 17:04:48	2.58
***************
*** 31,34 ****
--- 31,35 ----
 * 2001年04月28日 fl added __copy__ methods (work in progress)
 * 2001年05月14日 fl fixes for 1.5.2
+ * 2001年07月01日 fl added BIGCHARSET support (from Martin von Loewis)
 *
 * Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
***************
*** 507,522 ****
 break;
 
! 	case SRE_OP_BIGCHARSET:
! 	 /* <BIGCHARSET> <blockcount> <256 blockindices> <blocks> */
! 	{
! 	 int count, block;
! 	 count = *(set++);
! 	 block = ((unsigned char*)set)[ch >> 8];
! 	 set += 128;
! 	 if (set[block*16 + ((ch & 255)>>4)] & (1 << (ch & 15)))
! 		return ok;
! 	 set += count*16;
! 	 break;
! 	}
 
 case SRE_OP_CATEGORY:
--- 508,523 ----
 break;
 
! case SRE_OP_BIGCHARSET:
! /* <BIGCHARSET> <blockcount> <256 blockindices> <blocks> */
! {
! int count, block;
! count = *(set++);
! block = ((unsigned char*)set)[ch >> 8];
! set += 128;
! if (set[block*16 + ((ch & 255)>>4)] & (1 << (ch & 15)))
! return ok;
! set += count*16;
! break;
! }
 
 case SRE_OP_CATEGORY:

AltStyle によって変換されたページ (->オリジナル) /