Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f71ae461
Kaydet (Commit)
f71ae461
authored
Tem 02, 2001
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pythonware repository roundtrip (untabification)
üst
19af43d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
_sre.c
Modules/_sre.c
+13
-12
No files found.
Modules/_sre.c
Dosyayı görüntüle @
f71ae461
...
...
@@ -30,6 +30,7 @@
* 2001-04-15 fl export copyright as Python attribute, not global
* 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.
*
...
...
@@ -506,18 +507,18 @@ SRE_CHARSET(SRE_CODE* set, SRE_CODE ch)
set
+=
16
;
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_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
:
/* <CATEGORY> <code> */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment