[Gambas-user] Boxed string question

Gianluigi bagonergi at gmail.com
Wed Sep 11 19:08:49 CEST 2019


Il giorno mer 11 set 2019 alle ore 18:19 Benoît Minisini <g4mba5 at gmail.com>
ha scritto:

> 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"?
>
>
It comes from the request of a user on the Italian forum that used it in
VB6.

"vbProperCase 3 Converts the first letter of every word in a string to
uppercase."


> 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().
>
> As for Cedric's suggestion, ('HomeAddress' <==> 'home_address'), it a
> good idea too. The generic name for that sort of things is "normalization".
>
> But if you normalize for database you should put the function in the
> database component. Which has, by the way, quoting functions that should
> allow to name your identifiers as you want.
>
> Regards,
>
> --
> Benoît Minisini
>

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190911/00fffd7e/attachment-0001.html>


More information about the User mailing list