summaryrefslogtreecommitdiffstats
path: root/Doc/library/unicodedata.rst
diff options
context:
space:
mode:
authorMax BĂ©langer <aeromax@gmail.com>2018-11-04 23:58:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2018-11-04 23:58:24 (GMT)
commit2810dd7be9876236f74ac80716d113572c9098dd (patch)
tree796f4fed255575ae6ad652b01750903e3857e125 /Doc/library/unicodedata.rst
parent5d236cafd7126e640fb25541fcc7e0a494450143 (diff)
downloadcpython-2810dd7be9876236f74ac80716d113572c9098dd.zip
cpython-2810dd7be9876236f74ac80716d113572c9098dd.tar.gz
cpython-2810dd7be9876236f74ac80716d113572c9098dd.tar.bz2
closes bpo-32285: Add unicodedata.is_normalized. (GH-4806)
Diffstat (limited to 'Doc/library/unicodedata.rst')
-rw-r--r--Doc/library/unicodedata.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/unicodedata.rst b/Doc/library/unicodedata.rst
index 59548f3..17e848b 100644
--- a/Doc/library/unicodedata.rst
+++ b/Doc/library/unicodedata.rst
@@ -133,6 +133,13 @@ following functions:
a human reader, if one has combining characters and the other
doesn't, they may not compare equal.
+.. function:: is_normalized(form, unistr)
+
+ Return whether the Unicode string *unistr* is in the normal form *form*. Valid
+ values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
+
+ .. versionadded:: 3.8
+
In addition, the module exposes the following constant: