[squeak-dev] The Trunk: Collections-bf.498.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jan 22 17:13:17 UTC 2013


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]]!



More information about the Squeak-dev mailing list