diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-20 14:51:24 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-20 14:51:24 +0000 |
commit | ee099d148f5285f5dc11f2b0a5a2039997fc6f01 (patch) | |
tree | fc33a8154f5e1764df50466934204310cc40f302 /utf8.c | |
parent | 976ea96eb039ee807127647136ce79d22e3b465f (diff) | |
download | perl-ee099d148f5285f5dc11f2b0a5a2039997fc6f01.tar.gz |
Fix up the APIs noone hopefully uses.
p4raw-id: //depot/perl@13817
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -1044,19 +1044,31 @@ Perl_is_uni_xdigit_lc(pTHX_ UV c) U32 Perl_to_uni_upper_lc(pTHX_ U32 c) { - return to_uni_upper(c); /* XXX no locale support yet */ + /* XXX returns only the first character -- do not use XXX */ + /* XXX no locale support yet */ + STRLEN len; + U8 tmpbuf[UTF8_MAXLEN_UCLC+1]; + return (U32)to_uni_upper(c, tmpbuf, &len); } U32 Perl_to_uni_title_lc(pTHX_ U32 c) { - return to_uni_title(c); /* XXX no locale support yet */ + /* XXX returns only the first character XXX -- do not use XXX */ + /* XXX no locale support yet */ + STRLEN len; + U8 tmpbuf[UTF8_MAXLEN_UCLC+1]; + return (U32)to_uni_title(c, tmpbuf, &len); } U32 Perl_to_uni_lower_lc(pTHX_ U32 c) { - return to_uni_lower(c); /* XXX no locale support yet */ + /* XXX returns only the first character -- do not use XXX */ + /* XXX no locale support yet */ + STRLEN len; + U8 tmpbuf[UTF8_MAXLEN_UCLC+1]; + return (U32)to_uni_lower(c, tmpbuf, &len); } bool |