<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Hmm... given that I always remember #<span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">withFirstCharacterDownshifted but not #capitalized ... I think there might be something missing here. :-)</span><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Yes, if we would add #</span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">withFirstCharacterUpshifted, it should just call #capitalized directly.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Well, looking at Wikipedia (</span><a href="https://en.wikipedia.org/wiki/Capitalization"><span style="font-size: 10pt;font-family: Arial, Helvetica, sans-serif">https://en.wikipedia.org/wiki/Capitalization</span></a><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">), I wonder why </span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">'hello world' capitalized</span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">does not yield</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">'Hello World'</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">but only</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">'Hello world'</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">... because it says "...</span><span style="font-size: 10pt">writing a word with its first </span><a href="https://en.wikipedia.org/wiki/Letter_(alphabet)" title="Letter (alphabet)" style="font-size: 10pt">letter</a><span style="font-size: 10pt"> as a capital letter...</span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">" so 'hello world' has two words in it.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">So, #</span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">withFirstCharacterDownshifted refers to the string full of characters. #capitalized actually should refer to words.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">Anyway, I think that #withFirstCharacterUpshifted cannot hurt. :-)</span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">+0.5</span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">Best,</span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">Marcel</span></span></div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 14.10.2019 22:37:25 schrieb Chris Muller <asqueaker@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">-1.<div><br></div><div>Using the Method Finder, enter</div><div><br></div><div>     'hello'.  'Hello'</div><div><br></div><div>to see we already have #capitalized to do that.</div><div><br></div><div>Before introducing new API, always research existing nomenclature's.  Uncapitalization is not a common use-case, but if you want to introduce it into Squeak, I'd suggest #uncapitalized instead of two new methods named "Upshifted" and "Downshifted".  Those words describe the "procedure for obtaining a capital letter from a keyboard" (except "Downshifted," which only describes a car with a manual transmission, ready to burn rubber  :)  ).  By contrast, the #capitalized API describes the nature of the object itself.</div><div><br></div><div>Best,</div><div>  Chris</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 13, 2019 at 3:34 PM <<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-ct.858.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-ct.858.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-ct.858<br>
Author: ct<br>
Time: 13 October 2019, 10:33:55.310932 pm<br>
UUID: 80a9daa4-d11d-554c-8530-f4d5a1a70c8f<br>
Ancestors: Collections-pre.857<br>
<br>
Adds #withFirstCharacterUpshifted analogously to #withFirstCharacterDownshifted<br>
<br>
=============== Diff against Collections-pre.857 ===============<br>
<br>
Item was changed:<br>
  ----- Method: String>>withFirstCharacterDownshifted (in category 'converting') -----<br>
  withFirstCharacterDownshifted<br>
-       "Return a copy with the first letter downShifted"<br>
<br>
        | answer |<br>
-       <br>
        self ifEmpty: [^ self copy].<br>
        answer := self copy.<br>
        answer at: 1 put: (answer at: 1) asLowercase.<br>
+       ^ answer!<br>
-       ^ answer. !<br>
<br>
Item was added:<br>
+ ----- Method: String>>withFirstCharacterUpshifted (in category 'converting') -----<br>
+ withFirstCharacterUpshifted<br>
+ <br>
+       | answer |<br>
+       self ifEmpty: [^ self copy].<br>
+       answer := self copy.<br>
+       answer at: 1 put: (answer at: 1) asUppercase.<br>
+       ^ answer!<br>
<br>
Item was changed:<br>
  ----- Method: Symbol>>withFirstCharacterDownshifted (in category 'converting') -----<br>
  withFirstCharacterDownshifted<br>
+       "Answer an object like the receiver but with first character downshifted if necessary"<br>
-       "Answer an object like the receiver but with first character downshifted if necesary"<br>
<br>
+       ^self asString withFirstCharacterDownshifted asSymbol!<br>
-       ^self asString withFirstCharacterDownshifted asSymbol.!<br>
<br>
Item was added:<br>
+ ----- Method: Symbol>>withFirstCharacterUpshifted (in category 'converting') -----<br>
+ withFirstCharacterUpshifted<br>
+       "Answer an object like the receiver but with first character upshifted if necessary"<br>
+ <br>
+       ^self asString withFirstCharacterUpshifted asSymbol!<br>
<br>
<br>
</blockquote></div>
</div></blockquote>
                                        </div></body>