The Trunk: Collections-bf.498.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-bf.498.mcz

commits-2
Bert Freudenberg uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-bf.498.mcz

==================== Summary ====================

Name: Collections-bf.498
Author: bf
Time: 22 January 2013, 9:12:43.242 am
UUID: 8b3351ea-4d1a-4771-985b-589a13b3e605
Ancestors: Collections-nice.497, Collections-topa.366

Merge Collections-topa.366:
Provide #asCamelCase for Strings.

=============== Diff against Collections-nice.497 ===============

Item was added:
+ ----- Method: String>>asCamelCase (in category 'converting') -----
+ asCamelCase
+ "Convert to CamelCase. Can be conveinient
+ in conjunction with #asLegalSelector
+ 'A man, a plan, a canal, panama' asCamelCase.
+ 'A man, a plan, a canal, panama' asCamelCase asLegalSelector.
+ 'Here 123should % be 6 the name6 of the method' asCamelCase.
+ 'Here 123should % be 6 the name6 of the method' asCamelCase asLegalSelector."
+
+ ^ self class streamContents: [:stream |
+ self substrings do: [:sub |
+ stream nextPutAll: sub capitalized]]!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Collections-bf.498.mcz

Hannes Hirzel
Good to have this now in Squeak!

Just comes handy for me. Thank you.

--Hannes

On Tue, 22 Jan 2013 17:12:49.511 0000, [hidden email]
<[hidden email]> wrote:

> Bert Freudenberg uploaded a new version of Collections to project The
> Trunk:
> http://source.squeak.org/trunk/Collections-bf.498.mcz
>
> ==================== Summary ====================
>
> Name: Collections-bf.498
> Author: bf
> Time: 22 January 2013, 9:12:43.242 am
> UUID: 8b3351ea-4d1a-4771-985b-589a13b3e605
> Ancestors: Collections-nice.497, Collections-topa.366
>
> Merge Collections-topa.366:
> Provide #asCamelCase for Strings.
>
> =============== Diff against Collections-nice.497 ===============
>
> Item was added:
> + ----- Method: String>>asCamelCase (in category 'converting') -----
> + asCamelCase
> + "Convert to CamelCase. Can be conveinient
> + in conjunction with #asLegalSelector
> + 'A man, a plan, a canal, panama' asCamelCase.
> + 'A man, a plan, a canal, panama' asCamelCase asLegalSelector.
> + 'Here 123should % be 6 the name6 of the method' asCamelCase.
> + 'Here 123should % be 6 the name6 of the method' asCamelCase
> asLegalSelector."
> +
> + ^ self class streamContents: [:stream |
> + self substrings do: [:sub |
> + stream nextPutAll: sub capitalized]]!
>
>
>