@@ -31,7 +31,7 @@ following functions:
3131 this module.
3232
3333
34- .. function :: lookup(name)
34+ .. function :: lookup(name, / )
3535
3636 Look up character by name. If a character with the given name is found, return
3737 the corresponding character. If not found, :exc: `KeyError ` is raised.
@@ -94,7 +94,7 @@ following functions:
9494 0.5
9595
9696
97- .. function :: category(chr)
97+ .. function :: category(chr, / )
9898
9999 Returns the general category assigned to the character *chr * as
100100 string. General category names consist of two letters.
@@ -106,7 +106,7 @@ following functions:
106106 'Lu'
107107
108108
109- .. function :: bidirectional(chr)
109+ .. function :: bidirectional(chr, / )
110110
111111 Returns the bidirectional class assigned to the character *chr * as
112112 string. If no such value is defined, an empty string is returned.
@@ -118,7 +118,7 @@ following functions:
118118 'AN'
119119
120120
121- .. function :: combining(chr)
121+ .. function :: combining(chr, / )
122122
123123 Returns the canonical combining class assigned to the character *chr *
124124 as integer. Returns ``0 `` if no combining class is defined.
@@ -127,14 +127,14 @@ following functions:
127127 for more information.
128128
129129
130- .. function :: east_asian_width(chr)
130+ .. function :: east_asian_width(chr, / )
131131
132132 Returns the east asian width assigned to the character *chr * as
133133 string. For a list of widths and or more information, see the
134134 `Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/ >`_.
135135
136136
137- .. function :: mirrored(chr)
137+ .. function :: mirrored(chr, / )
138138
139139 Returns the mirrored property assigned to the character *chr * as
140140 integer. Returns ``1 `` if the character has been identified as a "mirrored"
@@ -144,7 +144,37 @@ following functions:
144144 1
145145
146146
147- .. function :: decomposition(chr)
147+ .. function :: isxidstart(chr, /)
148+
149+ Return ``True `` if *chr * is a valid identifier start per the
150+ `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/ >`_,
151+ that is, it has the ``XID_Start `` property. Return ``False `` otherwise.
152+ For example::
153+
154+ >>> unicodedata.isxidstart('S')
155+ True
156+ >>> unicodedata.isxidstart('0')
157+ False
158+
159+ .. versionadded :: next
160+
161+
162+ .. function :: isxidcontinue(chr, /)
163+
164+ Return ``True `` if *chr * is a valid identifier character per the
165+ `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/ >`_,
166+ that is, it has the ``XID_Continue `` property. Return ``False `` otherwise.
167+ For example::
168+
169+ >>> unicodedata.isxidcontinue('S')
170+ True
171+ >>> unicodedata.isxidcontinue(' ')
172+ False
173+
174+ .. versionadded :: next
175+
176+
177+ .. function :: decomposition(chr, /)
148178
149179 Returns the character decomposition mapping assigned to the character
150180 *chr * as string. An empty string is returned in case no such mapping is
@@ -154,7 +184,7 @@ following functions:
154184 '0041 0303'
155185
156186
157- .. function :: normalize(form, unistr)
187+ .. function :: normalize(form, unistr, / )
158188
159189 Return the normal form *form * for the Unicode string *unistr *. Valid values for
160190 *form * are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
@@ -187,7 +217,7 @@ following functions:
187217 doesn't, they may not compare equal.
188218
189219
190- .. function :: is_normalized(form, unistr)
220+ .. function :: is_normalized(form, unistr, / )
191221
192222 Return whether the Unicode string *unistr * is in the normal form *form *. Valid
193223 values for *form * are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
0 commit comments