From f65f278b8f63588b27cbc819c40f6012488c0390 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 13 Sep 1995 17:37:21 +0000 Subject: added string.translate(s, table) --- Doc/lib/libstring.tex | 6 ++++++ Doc/libstring.tex | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index 17717df..ac6dc55 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string Convert lower case letters to upper case and vice versa. \end{funcdesc} +\begin{funcdesc}{translate}{s, table} +Translate the characters from \var{s} using \var{table}, which must be +a 256-character string giving the translation for each character +value, indexed by its ordinal. +\end{funcdesc} + \begin{funcdesc}{upper}{s} Convert letters to upper case. \end{funcdesc} diff --git a/Doc/libstring.tex b/Doc/libstring.tex index 17717df..ac6dc55 100644 --- a/Doc/libstring.tex +++ b/Doc/libstring.tex @@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string Convert lower case letters to upper case and vice versa. \end{funcdesc} +\begin{funcdesc}{translate}{s, table} +Translate the characters from \var{s} using \var{table}, which must be +a 256-character string giving the translation for each character +value, indexed by its ordinal. +\end{funcdesc} + \begin{funcdesc}{upper}{s} Convert letters to upper case. \end{funcdesc} -- cgit v0.12