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
cb093fe8
Kaydet (Commit)
cb093fe8
authored
May 09, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
M.-A. Lemburg <mal@lemburg.com>:
Added PyUnicode_GetDefaultEncoding() and PyUnicode_GetDefaultEncoding() APIs.
üst
3ac3edcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
unicodeobject.h
Include/unicodeobject.h
+26
-4
No files found.
Include/unicodeobject.h
Dosyayı görüntüle @
cb093fe8
...
@@ -265,8 +265,8 @@ extern DL_IMPORT(int) PyUnicode_Resize(
...
@@ -265,8 +265,8 @@ extern DL_IMPORT(int) PyUnicode_Resize(
refcount.
refcount.
2. String and other char buffer compatible objects are decoded
2. String and other char buffer compatible objects are decoded
under the assumptions that they contain
UTF-8 data. Decoding
under the assumptions that they contain
data using the current
is done in "strict" mode.
default encoding. Decoding
is done in "strict" mode.
3. All other objects raise an exception.
3. All other objects raise an exception.
...
@@ -313,8 +313,7 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar(
...
@@ -313,8 +313,7 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar(
parameters encoding and errors have the same semantics as the ones
parameters encoding and errors have the same semantics as the ones
of the builtin unicode() API.
of the builtin unicode() API.
Setting encoding to NULL causes the default encoding to be used
Setting encoding to NULL causes the default encoding to be used.
which is UTF-8.
Error handling is set by errors which may also be set to NULL
Error handling is set by errors which may also be set to NULL
meaning to use the default handling defined for the codec. Default
meaning to use the default handling defined for the codec. Default
...
@@ -326,6 +325,29 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar(
...
@@ -326,6 +325,29 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar(
*/
*/
/* --- Manage the default encoding ---------------------------------------- */
/* Returns the currently active default encoding.
The default encoding is currently implemented as run-time settable
process global. This may change in future versions of the
interpreter to become a parameter which is managed on a per-thread
basis.
*/
extern
DL_IMPORT
(
const
char
*
)
PyUnicode_GetDefaultEncoding
();
/* Sets the currently active default encoding.
Returns 0 on success, -1 in case of an error.
*/
extern
DL_IMPORT
(
int
)
PyUnicode_SetDefaultEncoding
(
const
char
*
encoding
/* Encoding name in standard form */
);
/* --- Generic Codecs ----------------------------------------------------- */
/* --- Generic Codecs ----------------------------------------------------- */
/* Create a Unicode object by decoding the encoded string s of the
/* Create a Unicode object by decoding the encoded string s of the
...
...
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