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
8c077227
Kaydet (Commit)
8c077227
authored
Mar 25, 2002
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix whitespace.
üst
4843eb40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
unicodeobject.c
Objects/unicodeobject.c
+15
-15
No files found.
Objects/unicodeobject.c
Dosyayı görüntüle @
8c077227
...
@@ -1643,10 +1643,10 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
...
@@ -1643,10 +1643,10 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
chr
+=
10
+
c
-
'A'
;
chr
+=
10
+
c
-
'A'
;
}
}
s
+=
i
;
s
+=
i
;
if
(
chr
==
0xffffffff
)
if
(
chr
==
0xffffffff
)
/* _decoding_error will have already written into the
/* _decoding_error will have already written into the
target buffer. */
target buffer. */
break
;
break
;
store:
store:
/* when we get here, chr is a 32-bit unicode character */
/* when we get here, chr is a 32-bit unicode character */
if
(
chr
<=
0xffff
)
if
(
chr
<=
0xffff
)
...
@@ -1654,7 +1654,7 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
...
@@ -1654,7 +1654,7 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
*
p
++
=
(
Py_UNICODE
)
chr
;
*
p
++
=
(
Py_UNICODE
)
chr
;
else
if
(
chr
<=
0x10ffff
)
{
else
if
(
chr
<=
0x10ffff
)
{
/* UCS-4 character. Either store directly, or as
/* UCS-4 character. Either store directly, or as
surrogate pair. */
surrogate pair. */
#ifdef Py_UNICODE_WIDE
#ifdef Py_UNICODE_WIDE
*
p
++
=
chr
;
*
p
++
=
chr
;
#else
#else
...
@@ -1707,21 +1707,21 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
...
@@ -1707,21 +1707,21 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
break
;
break
;
default:
default:
if
(
s
>
end
)
{
if
(
s
>
end
)
{
if
(
unicodeescape_decoding_error
(
&
p
,
errors
,
"
\\
at end of string"
))
if
(
unicodeescape_decoding_error
(
&
p
,
errors
,
"
\\
at end of string"
))
goto
onError
;
goto
onError
;
}
}
else
{
else
{
*
p
++
=
'\\'
;
*
p
++
=
'\\'
;
*
p
++
=
(
unsigned
char
)
s
[
-
1
];
*
p
++
=
(
unsigned
char
)
s
[
-
1
];
}
}
break
;
break
;
}
}
}
}
if
(
_PyUnicode_Resize
(
&
v
,
(
int
)(
p
-
buf
)))
if
(
_PyUnicode_Resize
(
&
v
,
(
int
)(
p
-
buf
)))
goto
onError
;
goto
onError
;
return
(
PyObject
*
)
v
;
return
(
PyObject
*
)
v
;
ucnhashError:
ucnhashError:
PyErr_SetString
(
PyErr_SetString
(
PyExc_UnicodeError
,
PyExc_UnicodeError
,
...
...
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