Hi torsten
I do not get your point. In Pharo 60 we have.
capitalized
"Return a copy with the first letter capitalized"
| cap |
self isEmpty ifTrue: [ ^self copy ].
cap := self copy.
cap at: 1 put: (cap at: 1) asUppercase.
^ cap
"'snoopy'
Ok I got it
you mean
"'snOOpy' capitalized
>>>'Snoopy'"
and not
"'snOOpy' capitalized
>>>'SnOOpy'"
Indeed.
Now captialized comment is clear.
We could do that in Pharo70 alpha.
Now for OS that distinguish S from s we should pay attention.
Stef
On
ld upload a slice to Wikipedia + GitHub ;)
Bye
T.
> Gesendet: Mittwoch, 15. März 2017 um 14:30 Uhr
> Von: "John Brant" <br...@refactoryworkers.com>
> An: pharo-dev@lists.pharo.org
> Betreff: Re: [Pharo-dev] Capitalized
>
> On 03/15/2017 05:33 AM, Tor
On Wed, Mar 15, 2017 at 6:33 PM, Torsten Bergmann wrote:
> According to https://en.wikipedia.org/wiki/Capitalization
>
> to "capitalize" is writing a word with its first letter as a capital
> letter (upper-case letter)
> AND THE REMAINING LETTERS IN LOWER CASE writing systems.
>
On 03/15/2017 05:33 AM, Torsten Bergmann wrote:
According to https://en.wikipedia.org/wiki/Capitalization
to "capitalize" is writing a word with its first letter as a capital letter
(upper-case letter)
AND THE REMAINING LETTERS IN LOWER CASE writing systems.
So
'SOMETHING' capitalized
ar to then implement a new method
> called something like #onlyCapitalized that removes all other uppercase
> letters.
>
>
> Best regards,
>
> Henrik
>
>
> ________
> Fra: Pharo-dev <pharo-dev-boun...@lists.pharo.org> på vegne av
hat removes all other uppercase letters.
Best regards,
Henrik
Fra: Pharo-dev <pharo-dev-boun...@lists.pharo.org> på vegne av Torsten Bergmann
<asta...@gmx.de>
Sendt: 15. mars 2017 11:33:35
Til: Pharo Development List
Emne: [Pharo-dev] Capitalized
According to https://en.wikipedia.org/
According to https://en.wikipedia.org/wiki/Capitalization
to "capitalize" is writing a word with its first letter as a capital letter
(upper-case letter)
AND THE REMAINING LETTERS IN LOWER CASE writing systems.
So
'SOMETHING' capitalized
currently returns "SOMETHING" in Pharo but should