mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +00:00
Commit
This commit is contained in:
parent
fbf0843e39
commit
2a8682c7bb
1 changed files with 9 additions and 9 deletions
|
|
@ -31,7 +31,7 @@ following functions:
|
||||||
this module.
|
this module.
|
||||||
|
|
||||||
|
|
||||||
.. function:: lookup(name)
|
.. function:: lookup(name, /)
|
||||||
|
|
||||||
Look up character by name. If a character with the given name is found, return
|
Look up character by name. If a character with the given name is found, return
|
||||||
the corresponding character. If not found, :exc:`KeyError` is raised.
|
the corresponding character. If not found, :exc:`KeyError` is raised.
|
||||||
|
|
@ -94,7 +94,7 @@ following functions:
|
||||||
0.5
|
0.5
|
||||||
|
|
||||||
|
|
||||||
.. function:: category(chr)
|
.. function:: category(chr, /)
|
||||||
|
|
||||||
Returns the general category assigned to the character *chr* as
|
Returns the general category assigned to the character *chr* as
|
||||||
string. General category names consist of two letters.
|
string. General category names consist of two letters.
|
||||||
|
|
@ -106,7 +106,7 @@ following functions:
|
||||||
'Lu'
|
'Lu'
|
||||||
|
|
||||||
|
|
||||||
.. function:: bidirectional(chr)
|
.. function:: bidirectional(chr, /)
|
||||||
|
|
||||||
Returns the bidirectional class assigned to the character *chr* as
|
Returns the bidirectional class assigned to the character *chr* as
|
||||||
string. If no such value is defined, an empty string is returned.
|
string. If no such value is defined, an empty string is returned.
|
||||||
|
|
@ -118,7 +118,7 @@ following functions:
|
||||||
'AN'
|
'AN'
|
||||||
|
|
||||||
|
|
||||||
.. function:: combining(chr)
|
.. function:: combining(chr, /)
|
||||||
|
|
||||||
Returns the canonical combining class assigned to the character *chr*
|
Returns the canonical combining class assigned to the character *chr*
|
||||||
as integer. Returns ``0`` if no combining class is defined.
|
as integer. Returns ``0`` if no combining class is defined.
|
||||||
|
|
@ -127,14 +127,14 @@ following functions:
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
|
|
||||||
.. function:: east_asian_width(chr)
|
.. function:: east_asian_width(chr, /)
|
||||||
|
|
||||||
Returns the east asian width assigned to the character *chr* as
|
Returns the east asian width assigned to the character *chr* as
|
||||||
string. For a list of widths and or more information, see the
|
string. For a list of widths and or more information, see the
|
||||||
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_.
|
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_.
|
||||||
|
|
||||||
|
|
||||||
.. function:: mirrored(chr)
|
.. function:: mirrored(chr, /)
|
||||||
|
|
||||||
Returns the mirrored property assigned to the character *chr* as
|
Returns the mirrored property assigned to the character *chr* as
|
||||||
integer. Returns ``1`` if the character has been identified as a "mirrored"
|
integer. Returns ``1`` if the character has been identified as a "mirrored"
|
||||||
|
|
@ -144,7 +144,7 @@ following functions:
|
||||||
1
|
1
|
||||||
|
|
||||||
|
|
||||||
.. function:: decomposition(chr)
|
.. function:: decomposition(chr, /)
|
||||||
|
|
||||||
Returns the character decomposition mapping assigned to the character
|
Returns the character decomposition mapping assigned to the character
|
||||||
*chr* as string. An empty string is returned in case no such mapping is
|
*chr* as string. An empty string is returned in case no such mapping is
|
||||||
|
|
@ -154,7 +154,7 @@ following functions:
|
||||||
'0041 0303'
|
'0041 0303'
|
||||||
|
|
||||||
|
|
||||||
.. function:: normalize(form, unistr)
|
.. function:: normalize(form, unistr, /)
|
||||||
|
|
||||||
Return the normal form *form* for the Unicode string *unistr*. Valid values for
|
Return the normal form *form* for the Unicode string *unistr*. Valid values for
|
||||||
*form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
|
*form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
|
||||||
|
|
@ -187,7 +187,7 @@ following functions:
|
||||||
doesn't, they may not compare equal.
|
doesn't, they may not compare equal.
|
||||||
|
|
||||||
|
|
||||||
.. function:: is_normalized(form, unistr)
|
.. function:: is_normalized(form, unistr, /)
|
||||||
|
|
||||||
Return whether the Unicode string *unistr* is in the normal form *form*. Valid
|
Return whether the Unicode string *unistr* is in the normal form *form*. Valid
|
||||||
values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
|
values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue