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
dc2081f7
Kaydet (Commit)
dc2081f7
authored
Ara 27, 2010
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9738: document encodings of unicode functions
üst
555a24f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
unicode.rst
Doc/c-api/unicode.rst
+2
-1
unicodeobject.h
Include/unicodeobject.h
+7
-5
No files found.
Doc/c-api/unicode.rst
Dosyayı görüntüle @
dc2081f7
...
...
@@ -1063,7 +1063,8 @@ They all return *NULL* or ``-1`` if an exception occurs.
.. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string)
Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less
than, equal, and greater than, respectively.
than, equal, and greater than, respectively. *string* is an ASCII-encoded
string (it is interpreted as ISO-8859-1).
.. c:function:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)
...
...
Include/unicodeobject.h
Dosyayı görüntüle @
dc2081f7
...
...
@@ -443,14 +443,14 @@ PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
/* Similar to PyUnicode_FromUnicode(), but u points to UTF-8 encoded bytes */
PyAPI_FUNC
(
PyObject
*
)
PyUnicode_FromStringAndSize
(
const
char
*
u
,
/* char buffer
*/
Py_ssize_t
size
/* size of buffer */
const
char
*
u
/* UTF-8 encoded string
*/
Py_ssize_t
size
/* size of buffer */
);
/* Similar to PyUnicode_FromUnicode(), but u points to null-terminated
UTF-8 encoded bytes */
PyAPI_FUNC
(
PyObject
*
)
PyUnicode_FromString
(
const
char
*
u
/*
string */
const
char
*
u
/* UTF-8 encoded
string */
);
/* Return a read-only pointer to the Unicode object's internal
...
...
@@ -551,7 +551,9 @@ PyAPI_FUNC(PyObject *) _PyUnicode_FormatAdvanced(PyObject *obj,
PyAPI_FUNC
(
void
)
PyUnicode_InternInPlace
(
PyObject
**
);
PyAPI_FUNC
(
void
)
PyUnicode_InternImmortal
(
PyObject
**
);
PyAPI_FUNC
(
PyObject
*
)
PyUnicode_InternFromString
(
const
char
*
);
PyAPI_FUNC
(
PyObject
*
)
PyUnicode_InternFromString
(
const
char
*
u
/* UTF-8 encoded string */
);
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
void
)
_Py_ReleaseInternedUnicodeStrings
(
void
);
#endif
...
...
@@ -1455,7 +1457,7 @@ PyAPI_FUNC(int) PyUnicode_Compare(
PyAPI_FUNC
(
int
)
PyUnicode_CompareWithASCIIString
(
PyObject
*
left
,
const
char
*
right
const
char
*
right
/* ASCII-encoded string */
);
/* Rich compare two strings and return one of the following:
...
...
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