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
e57b1c0d
Kaydet (Commit)
e57b1c0d
authored
Eyl 28, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mark PyUnicode_FromUCS[124] as private
üst
ff9e50fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
ucs1lib.h
Objects/stringlib/ucs1lib.h
+1
-1
ucs2lib.h
Objects/stringlib/ucs2lib.h
+1
-1
ucs4lib.h
Objects/stringlib/ucs4lib.h
+1
-1
unicodeobject.c
Objects/unicodeobject.c
+10
-10
No files found.
Objects/stringlib/ucs1lib.h
Dosyayı görüntüle @
e57b1c0d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_NEW PyUnicode_FromUCS1
#define STRINGLIB_NEW
_
PyUnicode_FromUCS1
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
...
...
Objects/stringlib/ucs2lib.h
Dosyayı görüntüle @
e57b1c0d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_NEW PyUnicode_FromUCS2
#define STRINGLIB_NEW
_
PyUnicode_FromUCS2
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
...
...
Objects/stringlib/ucs4lib.h
Dosyayı görüntüle @
e57b1c0d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_FILL Py_UNICODE_FILL
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
#define STRINGLIB_NEW PyUnicode_FromUCS4
#define STRINGLIB_NEW
_
PyUnicode_FromUCS4
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_RESIZE not_supported
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact
...
...
Objects/unicodeobject.c
Dosyayı görüntüle @
e57b1c0d
...
@@ -1117,8 +1117,8 @@ PyUnicode_FromString(const char *u)
...
@@ -1117,8 +1117,8 @@ PyUnicode_FromString(const char *u)
return PyUnicode_FromStringAndSize(u, size);
return PyUnicode_FromStringAndSize(u, size);
}
}
PyObject*
static
PyObject*
PyUnicode_FromUCS1(const unsigned char* u, Py_ssize_t size)
_
PyUnicode_FromUCS1(const unsigned char* u, Py_ssize_t size)
{
{
PyObject *res;
PyObject *res;
unsigned char max = 127;
unsigned char max = 127;
...
@@ -1136,8 +1136,8 @@ PyUnicode_FromUCS1(const unsigned char* u, Py_ssize_t size)
...
@@ -1136,8 +1136,8 @@ PyUnicode_FromUCS1(const unsigned char* u, Py_ssize_t size)
return res;
return res;
}
}
PyObject*
static
PyObject*
PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size)
_
PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size)
{
{
PyObject *res;
PyObject *res;
Py_UCS2 max = 0;
Py_UCS2 max = 0;
...
@@ -1156,8 +1156,8 @@ PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size)
...
@@ -1156,8 +1156,8 @@ PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size)
return res;
return res;
}
}
PyObject*
static
PyObject*
PyUnicode_FromUCS4(const Py_UCS4 *u, Py_ssize_t size)
_
PyUnicode_FromUCS4(const Py_UCS4 *u, Py_ssize_t size)
{
{
PyObject *res;
PyObject *res;
Py_UCS4 max = 0;
Py_UCS4 max = 0;
...
@@ -1184,11 +1184,11 @@ PyUnicode_FromKindAndData(int kind, const void *buffer, Py_ssize_t size)
...
@@ -1184,11 +1184,11 @@ PyUnicode_FromKindAndData(int kind, const void *buffer, Py_ssize_t size)
{
{
switch(kind) {
switch(kind) {
case PyUnicode_1BYTE_KIND:
case PyUnicode_1BYTE_KIND:
return PyUnicode_FromUCS1(buffer, size);
return
_
PyUnicode_FromUCS1(buffer, size);
case PyUnicode_2BYTE_KIND:
case PyUnicode_2BYTE_KIND:
return PyUnicode_FromUCS2(buffer, size);
return
_
PyUnicode_FromUCS2(buffer, size);
case PyUnicode_4BYTE_KIND:
case PyUnicode_4BYTE_KIND:
return PyUnicode_FromUCS4(buffer, size);
return
_
PyUnicode_FromUCS4(buffer, size);
}
}
assert(0);
assert(0);
return NULL;
return NULL;
...
@@ -5645,7 +5645,7 @@ PyUnicode_DecodeLatin1(const char *s,
...
@@ -5645,7 +5645,7 @@ PyUnicode_DecodeLatin1(const char *s,
const char *errors)
const char *errors)
{
{
/* Latin-1 is equivalent to the first 256 ordinals in Unicode. */
/* Latin-1 is equivalent to the first 256 ordinals in Unicode. */
return PyUnicode_FromUCS1((unsigned char*)s, size);
return
_
PyUnicode_FromUCS1((unsigned char*)s, size);
}
}
/* create or adjust a UnicodeEncodeError */
/* create or adjust a UnicodeEncodeError */
...
...
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