Mercurial > cpython-lru_cache-weakref
diff Doc/libstring.tex @ 2527:815dfaa6a778 legacy-trunk
small changes by Soren Larsen
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 13 Mar 1995 10:03:32 +0000 |
| parents | e764b78a704f |
| children | f47bc5554418 |
line wrap: on
line diff
--- a/Doc/libstring.tex Fri Mar 10 16:19:31 1995 +0000 +++ b/Doc/libstring.tex Mon Mar 13 10:03:32 1995 +0000 @@ -72,7 +72,7 @@ \end{funcdesc} \begin{funcdesc}{expandtabs}{s\, tabsize} -Expand tabs in a string, i.e. replace them by one or more spaces, +Expand tabs in a string, i.e.\ replace them by one or more spaces, depending on the current column and the given tab size. The column number is reset to zero after each newline occurring in the string. This doesn't understand other non-printing characters or escape @@ -88,7 +88,7 @@ \end{funcdesc} \begin{funcdesc}{rfind}{s\, sub\optional{\, start}} -Like \code{find} but finds the highest index. +Like \code{find} but find the highest index. \end{funcdesc} \begin{funcdesc}{index}{s\, sub\optional{\, start}} @@ -101,7 +101,7 @@ not found. \end{funcdesc} -\begin{funcdesc}{count}{s\, sub\, i} +\begin{funcdesc}{count}{s\, sub\optional{\, i}} Return the number of (non-overlapping) occurrences of substring \var{sub} in string \var{s} with index at least \var{i}. If \var{i} is omitted, it defaults to \code{0}. @@ -112,12 +112,12 @@ \end{funcdesc} \begin{funcdesc}{split}{s} -Returns a list of the whitespace-delimited words of the string +Return a list of the whitespace-delimited words of the string \var{s}. \end{funcdesc} \begin{funcdesc}{splitfields}{s\, sep} - Returns a list containing the fields of the string \var{s}, using + Return a list containing the fields of the string \var{s}, using the string \var{sep} as a separator. The list will have one more items than the number of non-overlapping occurrences of the separator in the string. Thus, \code{string.splitfields(\var{s}, ' @@ -139,12 +139,12 @@ \end{funcdesc} \begin{funcdesc}{strip}{s} -Removes leading and trailing whitespace from the string +Remove leading and trailing whitespace from the string \var{s}. \end{funcdesc} \begin{funcdesc}{swapcase}{s} -Converts lower case letters to upper case and vice versa. +Convert lower case letters to upper case and vice versa. \end{funcdesc} \begin{funcdesc}{upper}{s}
