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
9bc4f2de
Kaydet (Commit)
9bc4f2de
authored
Haz 03, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Drop claims that Unicode always means UCS-2. Fixes #881861.
üst
4a9b8069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
concrete.tex
Doc/api/concrete.tex
+4
-3
utilities.tex
Doc/api/utilities.tex
+6
-6
No files found.
Doc/api/concrete.tex
Dosyayı görüntüle @
9bc4f2de
...
...
@@ -1109,9 +1109,10 @@ These are the UTF-16 codec APIs:
the Unicode BOM mark (U+FEFF). In the other two modes, no BOM mark
is prepended.
Note that
\ctype
{
Py
_
UNICODE
}
data is being interpreted as UTF-16
reduced to UCS-2. This trick makes it possible to add full UTF-16
capabilities at a later point without comprimising the APIs.
If
\var
{
Py
_
UNICODE
_
WIDE
}
is defined, a single
\ctype
{
Py
_
UNICODE
}
value may get represented as a surrogate pair. If it is not
defined, each
\ctype
{
Py
_
UNICODE
}
values is interpreted as an
UCS-2 character.
Returns
\NULL
{}
if an exception was raised by the codec.
\end{cfuncdesc}
...
...
Doc/api/utilities.tex
Dosyayı görüntüle @
9bc4f2de
...
...
@@ -780,14 +780,14 @@ PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
Same as
\samp
{
s
\#
}
.
\item
[\samp{u} (Unicode string) {[Py_UNICODE *]
}
]
Convert a null-terminated buffer of Unicode (UCS-2
) data to a
Python Unicode object. If the Unicode buffer pointer is
\NULL
,
\code
{
None
}
is returned.
Convert a null-terminated buffer of Unicode (UCS-2
or UCS-4)
data to a Python Unicode object. If the Unicode buffer pointer
is
\NULL
,
\code
{
None
}
is returned.
\item
[\samp{u\#} (Unicode string) {[Py_UNICODE *, int]
}
]
Convert a Unicode (UCS-2
) data buffer and its length to a Python
Unicode object. If the Unicode buffer pointer is
\NULL
, the
length is ignored and
\code
{
None
}
is returned.
Convert a Unicode (UCS-2
or UCS-4) data buffer and its length
to a Python Unicode object. If the Unicode buffer pointer
is
\NULL
, the
length is ignored and
\code
{
None
}
is returned.
\item
[\samp{i} (integer) {[int]
}
]
Convert a plain C
\ctype
{
int
}
to a Python integer object.
...
...
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