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
1d1e1dba
Kaydet (Commit)
1d1e1dba
authored
Haz 20, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrected return type and value information for PyUnicode_Count() and
PyUnicode_Find(). This closes SF bug #566631.
üst
ba3ff1ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
concrete.tex
Doc/api/concrete.tex
+18
-14
refcounts.dat
Doc/api/refcounts.dat
+2
-2
No files found.
Doc/api/concrete.tex
Dosyayı görüntüle @
1d1e1dba
...
@@ -1325,23 +1325,27 @@ They all return \NULL{} or \code{-1} if an exception occurs.
...
@@ -1325,23 +1325,27 @@ They all return \NULL{} or \code{-1} if an exception occurs.
match,
\var
{
direction
}
== 1 a suffix match), 0 otherwise.
match,
\var
{
direction
}
== 1 a suffix match), 0 otherwise.
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
Find
}{
PyObject *str,
\begin{cfuncdesc}
{
int
}{
PyUnicode
_
Find
}{
PyObject *str,
PyObject *substr,
PyObject *substr,
int start,
int start,
int end,
int end,
int direction
}
int direction
}
Return the first position of
\var
{
substr
}
in
Return the first position of
\var
{
substr
}
in
\var
{
str
}
[
\var
{
start
}
:
\var
{
end
}
] using the given
\var
{
direction
}
\var
{
str
}
[
\var
{
start
}
:
\var
{
end
}
] using the given
\var
{
direction
}
(
\var
{
direction
}
== 1 means to do a forward search,
(
\var
{
direction
}
== 1 means to do a forward search,
\var
{
direction
}
== -1 a backward search), 0 otherwise.
\var
{
direction
}
== -1 a backward search). The return value is the
\end{cfuncdesc}
index of the first match; a value of
\code
{
-1
}
indicates that no
match was found, and
\code
{
-2
}
indicates that an error occurred and
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
Count
}{
PyObject *str,
an exception has been set.
PyObject *substr,
\end{cfuncdesc}
int start,
int end
}
\begin{cfuncdesc}
{
int
}{
PyUnicode
_
Count
}{
PyObject *str,
Count the number of occurrences of
\var
{
substr
}
in
PyObject *substr,
\var
{
str
}
[
\var
{
start
}
:
\var
{
end
}
]
int start,
int end
}
Return the number of non-overlapping occurrences of
\var
{
substr
}
in
\code
{
\var
{
str
}
[
\var
{
start
}
:
\var
{
end
}
]
}
. Returns
\code
{
-1
}
if an
error occurred.
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
Replace
}{
PyObject *str,
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
Replace
}{
PyObject *str,
...
...
Doc/api/refcounts.dat
Dosyayı görüntüle @
1d1e1dba
...
@@ -1393,14 +1393,14 @@ PyUnicode_Tailmatch:int:start::
...
@@ -1393,14 +1393,14 @@ PyUnicode_Tailmatch:int:start::
PyUnicode_Tailmatch:int:end::
PyUnicode_Tailmatch:int:end::
PyUnicode_Tailmatch:int:direction::
PyUnicode_Tailmatch:int:direction::
PyUnicode_Find:
PyObject*::+1
:
PyUnicode_Find:
int::
:
PyUnicode_Find:PyObject*:str:0:
PyUnicode_Find:PyObject*:str:0:
PyUnicode_Find:PyObject*:substr:0:
PyUnicode_Find:PyObject*:substr:0:
PyUnicode_Find:int:start::
PyUnicode_Find:int:start::
PyUnicode_Find:int:end::
PyUnicode_Find:int:end::
PyUnicode_Find:int:direction::
PyUnicode_Find:int:direction::
PyUnicode_Count:
PyObject*::+1
:
PyUnicode_Count:
int::
:
PyUnicode_Count:PyObject*:str:0:
PyUnicode_Count:PyObject*:str:0:
PyUnicode_Count:PyObject*:substr:0:
PyUnicode_Count:PyObject*:substr:0:
PyUnicode_Count:int:start::
PyUnicode_Count:int:start::
...
...
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