[Python-Dev] Adding Unicode methods to string objects

M.-A. Lemburg mal@lemburg.com
Tue, 07 Mar 2000 18:39:15 +0100


I've ported most of the Unicode methods to strings now.
Here's the new table:

Unicode objects      string objects
------------------------------------------------------------
capitalize           capitalize
center               center
count                count
encode              
endswith             endswith
expandtabs           expandtabs
find                 find
index                index
isdecimal           
isdigit              isdigit
islower              islower
isnumeric           
isspace              isspace
istitle              istitle
isupper              isupper
join                 join
ljust                ljust
lower                lower
lstrip               lstrip
replace              replace
rfind                rfind
rindex               rindex
rjust                rjust
rstrip               rstrip
split                split
splitlines           splitlines
startswith           startswith
strip                strip
swapcase             swapcase
title                title
translate            translate
upper                upper
zfill                zfill

I don't think that .isdecimal() and .isnumeric() are
needed for strings since most of the added mappings
refer to Unicode char points.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/