[Python-checkins] python/dist/src/Doc/api concrete.tex,1.16,1.17 refcounts.dat,1.41,1.42

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Thu, 20 Jun 2002 15:07:06 -0700


Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv819/api

Modified Files:
	concrete.tex refcounts.dat 
Log Message:
Corrected return type and value information for PyUnicode_Count() and
PyUnicode_Find().
This closes SF bug #566631.


Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** concrete.tex	11 Jun 2002 10:55:08 -0000	1.16
--- concrete.tex	20 Jun 2002 22:07:04 -0000	1.17
***************
*** 1326,1346 ****
  \end{cfuncdesc}
  
! \begin{cfuncdesc}{PyObject*}{PyUnicode_Find}{PyObject *str,
!                                                   PyObject *substr,
!                                                   int start,
!                                                   int end,
!                                                   int direction}
    Return the first position of \var{substr} in
    \var{str}[\var{start}:\var{end}] using the given \var{direction}
    (\var{direction} == 1 means to do a forward search,
!   \var{direction} == -1 a backward search), 0 otherwise.
  \end{cfuncdesc}
  
! \begin{cfuncdesc}{PyObject*}{PyUnicode_Count}{PyObject *str,
!                                                   PyObject *substr,
!                                                   int start,
!                                                   int end}
!   Count the number of occurrences of \var{substr} in
!   \var{str}[\var{start}:\var{end}]
  \end{cfuncdesc}
  
--- 1326,1350 ----
  \end{cfuncdesc}
  
! \begin{cfuncdesc}{int}{PyUnicode_Find}{PyObject *str,
!                                        PyObject *substr,
!                                        int start,
!                                        int end,
!                                        int direction}
    Return the first position of \var{substr} in
    \var{str}[\var{start}:\var{end}] using the given \var{direction}
    (\var{direction} == 1 means to do a forward search,
!   \var{direction} == -1 a backward search).  The return value is the
!   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
!   an exception has been set.
  \end{cfuncdesc}
  
! \begin{cfuncdesc}{int}{PyUnicode_Count}{PyObject *str,
!                                         PyObject *substr,
!                                         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}
  

Index: refcounts.dat
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/refcounts.dat,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** refcounts.dat	14 Jun 2002 14:35:56 -0000	1.41
--- refcounts.dat	20 Jun 2002 22:07:04 -0000	1.42
***************
*** 1394,1398 ****
  PyUnicode_Tailmatch:int:direction::
  
! PyUnicode_Find:PyObject*::+1:
  PyUnicode_Find:PyObject*:str:0:
  PyUnicode_Find:PyObject*:substr:0:
--- 1394,1398 ----
  PyUnicode_Tailmatch:int:direction::
  
! PyUnicode_Find:int:::
  PyUnicode_Find:PyObject*:str:0:
  PyUnicode_Find:PyObject*:substr:0:
***************
*** 1401,1405 ****
  PyUnicode_Find:int:direction::
  
! PyUnicode_Count:PyObject*::+1:
  PyUnicode_Count:PyObject*:str:0:
  PyUnicode_Count:PyObject*:substr:0:
--- 1401,1405 ----
  PyUnicode_Find:int:direction::
  
! PyUnicode_Count:int:::
  PyUnicode_Count:PyObject*:str:0:
  PyUnicode_Count:PyObject*:substr:0: