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
593bb30e
Kaydet (Commit)
593bb30e
authored
Eyl 07, 2018
tarafından
Sergey Fedoseev
Kaydeden (comit)
Benjamin Peterson
Eyl 07, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
closes bpo-34599: Improve performance of _Py_bytes_capitalize(). (GH-9083)
üst
b03c2c51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
bytes_methods.c
Objects/bytes_methods.c
+3
-17
No files found.
Objects/bytes_methods.c
Dosyayı görüntüle @
593bb30e
...
@@ -361,23 +361,9 @@ and the rest lower-cased.");
...
@@ -361,23 +361,9 @@ and the rest lower-cased.");
void
void
_Py_bytes_capitalize
(
char
*
result
,
const
char
*
s
,
Py_ssize_t
len
)
_Py_bytes_capitalize
(
char
*
result
,
const
char
*
s
,
Py_ssize_t
len
)
{
{
Py_ssize_t
i
;
if
(
len
>
0
)
{
*
result
=
Py_TOUPPER
(
*
s
);
if
(
0
<
len
)
{
_Py_bytes_lower
(
result
+
1
,
s
+
1
,
len
-
1
);
int
c
=
Py_CHARMASK
(
*
s
++
);
if
(
Py_ISLOWER
(
c
))
*
result
=
Py_TOUPPER
(
c
);
else
*
result
=
c
;
result
++
;
}
for
(
i
=
1
;
i
<
len
;
i
++
)
{
int
c
=
Py_CHARMASK
(
*
s
++
);
if
(
Py_ISUPPER
(
c
))
*
result
=
Py_TOLOWER
(
c
);
else
*
result
=
c
;
result
++
;
}
}
}
}
...
...
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