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
9e9bcda5
Kaydet (Commit)
9e9bcda5
authored
Ock 21, 2001
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
forgot to check in the new makeunicodedata.py script
üst
d38855c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
ucnhash.c
Modules/ucnhash.c
+8
-10
unicodedata_db.h
Modules/unicodedata_db.h
+1
-1
unicodename_db.h
Modules/unicodename_db.h
+0
-0
unicodetype_db.h
Objects/unicodetype_db.h
+1
-1
makeunicodedata.py
Tools/unicode/makeunicodedata.py
+0
-0
No files found.
Modules/ucnhash.c
Dosyayı görüntüle @
9e9bcda5
...
@@ -11,16 +11,13 @@
...
@@ -11,16 +11,13 @@
/* database code (cut and pasted from the unidb package) */
/* database code (cut and pasted from the unidb package) */
static
unsigned
long
static
unsigned
long
gethash
(
const
char
*
s
,
int
len
)
gethash
(
const
char
*
s
,
int
len
,
int
scale
)
{
{
int
i
;
int
i
;
unsigned
long
h
=
0
;
unsigned
long
h
=
0
;
unsigned
long
ix
;
unsigned
long
ix
;
for
(
i
=
0
;
i
<
len
;
i
++
)
{
for
(
i
=
0
;
i
<
len
;
i
++
)
{
/* magic value 47 was chosen to minimize the number
h
=
(
h
*
scale
)
+
(
unsigned
char
)
toupper
(
s
[
i
]);
of collisions for the uninames dataset. see the
makeunicodedata script for more background */
h
=
(
h
*
47
)
+
(
unsigned
char
)
toupper
(
s
[
i
]);
ix
=
h
&
0xff000000
;
ix
=
h
&
0xff000000
;
if
(
ix
)
if
(
ix
)
h
=
(
h
^
((
ix
>>
24
)
&
0xff
))
&
0x00ffffff
;
h
=
(
h
^
((
ix
>>
24
)
&
0xff
))
&
0x00ffffff
;
...
@@ -40,8 +37,9 @@ getname(Py_UCS4 code, char* buffer, int buflen)
...
@@ -40,8 +37,9 @@ getname(Py_UCS4 code, char* buffer, int buflen)
return
0
;
return
0
;
/* get offset into phrasebook */
/* get offset into phrasebook */
offset
=
phrasebook_offset1
[(
code
>>
SHIFT
)];
offset
=
phrasebook_offset1
[(
code
>>
phrasebook_shift
)];
offset
=
phrasebook_offset2
[(
offset
<<
SHIFT
)
+
(
code
&
((
1
<<
SHIFT
)
-
1
))];
offset
=
phrasebook_offset2
[(
offset
<<
phrasebook_shift
)
+
(
code
&
((
1
<<
phrasebook_shift
)
-
1
))];
if
(
!
offset
)
if
(
!
offset
)
return
0
;
return
0
;
...
@@ -99,14 +97,14 @@ static int
...
@@ -99,14 +97,14 @@ static int
getcode
(
const
char
*
name
,
int
namelen
,
Py_UCS4
*
code
)
getcode
(
const
char
*
name
,
int
namelen
,
Py_UCS4
*
code
)
{
{
unsigned
int
h
,
v
;
unsigned
int
h
,
v
;
unsigned
int
mask
=
CODE_SIZE
-
1
;
unsigned
int
mask
=
code_size
-
1
;
unsigned
int
i
,
incr
;
unsigned
int
i
,
incr
;
/* the following is the same as python's dictionary lookup, with
/* the following is the same as python's dictionary lookup, with
only minor changes. see the makeunicodedata script for more
only minor changes. see the makeunicodedata script for more
details */
details */
h
=
(
unsigned
int
)
gethash
(
name
,
namelen
);
h
=
(
unsigned
int
)
gethash
(
name
,
namelen
,
code_magic
);
i
=
(
~
h
)
&
mask
;
i
=
(
~
h
)
&
mask
;
v
=
code_hash
[
i
];
v
=
code_hash
[
i
];
if
(
!
v
)
if
(
!
v
)
...
@@ -129,7 +127,7 @@ getcode(const char* name, int namelen, Py_UCS4* code)
...
@@ -129,7 +127,7 @@ getcode(const char* name, int namelen, Py_UCS4* code)
}
}
incr
=
incr
<<
1
;
incr
=
incr
<<
1
;
if
(
incr
>
mask
)
if
(
incr
>
mask
)
incr
=
incr
^
CODE_POLY
;
incr
=
incr
^
code_poly
;
}
}
}
}
...
...
Modules/unicodedata_db.h
Dosyayı görüntüle @
9e9bcda5
/* this file was generated by tools\unicode\makeunicodedata.py
1
.1 */
/* this file was generated by tools\unicode\makeunicodedata.py
2
.1 */
/* a list of unique database records */
/* a list of unique database records */
const
_PyUnicode_DatabaseRecord
_PyUnicode_Database_Records
[]
=
{
const
_PyUnicode_DatabaseRecord
_PyUnicode_Database_Records
[]
=
{
...
...
Modules/unicodename_db.h
Dosyayı görüntüle @
9e9bcda5
This diff is collapsed.
Click to expand it.
Objects/unicodetype_db.h
Dosyayı görüntüle @
9e9bcda5
/* this file was generated by tools\unicode\makeunicodedata.py
1
.1 */
/* this file was generated by tools\unicode\makeunicodedata.py
2
.1 */
/* a list of unique character type descriptors */
/* a list of unique character type descriptors */
const
_PyUnicode_TypeRecord
_PyUnicode_TypeRecords
[]
=
{
const
_PyUnicode_TypeRecord
_PyUnicode_TypeRecords
[]
=
{
...
...
Tools/unicode/makeunicodedata.py
Dosyayı görüntüle @
9e9bcda5
This diff is collapsed.
Click to expand it.
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