Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 32197:3a84e23b042f legacy-trunk
- SF #962502: Add two more methods for unicode type; width() and
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
| author | Hye-Shik Chang <hyeshik@gmail.com> |
|---|---|
| date | Wed, 02 Jun 2004 16:49:17 +0000 |
| parents | b319db3869d8 |
| children | 6478eb6ae3c0 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Wed Jun 02 15:37:04 2004 +0000 +++ b/Doc/lib/libstdtypes.tex Wed Jun 02 16:49:17 2004 +0000 @@ -642,6 +642,12 @@ there is at least one cased character, false otherwise. \end{methoddesc} +\begin{methoddesc}[string]{iswide}{} +Return true if all characters in the string are wide or full width and +there is at least one wide or full width character, false otherwise. +This method is supported by unicode type only. +\end{methoddesc} + \begin{methoddesc}[string]{join}{seq} Return a string which is the concatenation of the strings in the sequence \var{seq}. The separator between elements is the string @@ -774,6 +780,11 @@ Return a copy of the string converted to uppercase. \end{methoddesc} +\begin{methoddesc}[string]{width}{} +Return length of fixed-width representation of the string. This method +is supported by unicode type only. +\end{methoddesc} + \begin{methoddesc}[string]{zfill}{width} Return the numeric string left filled with zeros in a string of length \var{width}. The original string is returned if
