summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-08-04 07:38:35 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-08-04 07:38:35 (GMT)
commite9ddfbb41207328d5c89061067f3431e00711fda (patch)
tree54093161fe6808de7d6fcc3304eb32241231f010 /Doc/api
parentb5047fd01948ab108edcc1b3c2c901d915814cfd (diff)
downloadcpython-e9ddfbb41207328d5c89061067f3431e00711fda.zip
cpython-e9ddfbb41207328d5c89061067f3431e00711fda.tar.gz
cpython-e9ddfbb41207328d5c89061067f3431e00711fda.tar.bz2
SF #989185: Drop unicode.iswide() and unicode.width() and add
unicodedata.east_asian_width(). You can still implement your own simple width() function using it like this: def width(u): w = 0 for c in unicodedata.normalize('NFC', u): cwidth = unicodedata.east_asian_width(c) if cwidth in ('W', 'F'): w += 2 else: w += 1 return w
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex9
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index cb065ff..d569228 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -894,11 +894,6 @@ functions depending on the Python configuration.
character.
\end{cfuncdesc}
-\begin{cfuncdesc}{int}{Py_UNICODE_ISWIDE}{Py_UNICODE ch}
- Returns 1/0 depending on whether \var{ch} is a wide or full-width
- character.
-\end{cfuncdesc}
-
These APIs can be used for fast direct character conversions:
\begin{cfuncdesc}{Py_UNICODE}{Py_UNICODE_TOLOWER}{Py_UNICODE ch}
@@ -957,10 +952,6 @@ use these APIs:
Return the length of the Unicode object.
\end{cfuncdesc}
-\begin{cfuncdesc}{int}{PyUnicode_GetWidth}{PyObject *unicode}
- Return the fixed-width representation length of the Unicode object.
-\end{cfuncdesc}
-
\begin{cfuncdesc}{PyObject*}{PyUnicode_FromEncodedObject}{PyObject *obj,
const char *encoding,
const char *errors}