[squeak-dev] The Inbox: Collections-topa.366.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 16 13:35:04 UTC 2010

A new version of Collections was added to project The Inbox:

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

Name: Collections-topa.366
Author: topa
Time: 16 June 2010, 3:34:47.932 pm
UUID: 5491e7f9-bcc4-423a-a267-8853ca2eb9a3
Ancestors: Collections-ul.365

Provide #asCamelCase for Strings.
May be usefull for natural language conversation or the like.

=============== Diff against Collections-ul.365 ===============

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