mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
add str.casefold() (closes #13752)
This commit is contained in:
parent
94d5a7174a
commit
d5890c8db5
8 changed files with 493 additions and 137 deletions
|
@ -1002,6 +1002,14 @@ functions based on regular expressions.
|
|||
rest lowercased.
|
||||
|
||||
|
||||
.. method:: str.casefold()
|
||||
|
||||
Return a casefolded copy of the string. Casefolded strings may be used for
|
||||
caseless matching. For example, ``"MASSE".casefold() == "maße".casefold()``.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. method:: str.center(width[, fillchar])
|
||||
|
||||
Return centered in a string of length *width*. Padding is done using the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue