[Gambas-user] Boxed string question
Benoît Minisini
g4mba5 at gmail.com
Wed Sep 11 18:19:19 CEST 2019
Le 11/09/2019 à 18:18, Benoît Minisini a écrit :
> Le 11/09/2019 à 15:44, Gianluigi a écrit :
>> Hi Cedron,
>> thank you very much for all the suggestions ;-)
>>
>> Regards
>> Gianluigi
>>
>
> Why the name "ProperCase"?
>
> Anyway, it's difficult to add a function that should behave differently
> according to the current language (the proper case is not the same thing
> in French, Italian, and I don't tell about Chinese and Arabic), if that
> information is not available in the libc.
>
> The right name would be "String.CapitalizeWords".
>
> And String.UCaseFirst() should have been named String.Capitalize().
>
For those who would want to write the code, this must go in the String
class of gb.util.
Regards,
--
Benoît Minisini
More information about the User
mailing list