Edgar J. De Cleene uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-edc.285.mcz
==================== Summary ====================
Name: Collections-edc.285
Author: edc
Time: 29 January 2010, 7:01:04.567 am
UUID: b62a5e69-31ed-4958-b317-621a163b5a90
Ancestors: Collections-ul.284
-enh Add String > beginsWithAnyOf:
=============== Diff against Collections-ul.284 ===============
Item was added:
+ ----- Method: String>>beginsWithAnyOf: (in category 'comparing') -----
+ beginsWithAnyOf: aCollection
+ aCollection do:[:suffix|
+ (self beginsWith: suffix) ifTrue:[^true].
+ ].
+ ^false!
Edgar J. De Cleene uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-edc.285.mcz
==================== Summary ====================
Name: Collections-edc.285
Author: edc
Time: 29 January 2010, 7:01:04.567 am
UUID: b62a5e69-31ed-4958-b317-621a163b5a90
Ancestors: Collections-ul.284
-enh Add String > beginsWithAnyOf:
=============== Diff against Collections-ul.284 ===============
Item was added:
+ ----- Method: String>>beginsWithAnyOf: (in category 'comparing') -----
+ beginsWithAnyOf: aCollection
+ aCollection do:[:suffix|
+ (self beginsWith: suffix) ifTrue:[^true].
+ ].
+ ^false!
Edgar J. De Cleene uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-edc.285.mcz
==================== Summary ====================
Name: Collections-edc.285
Author: edc
Time: 29 January 2010, 7:01:04.567 am
UUID: b62a5e69-31ed-4958-b317-621a163b5a90
Ancestors: Collections-ul.284
-enh Add String > beginsWithAnyOf:
=============== Diff against Collections-ul.284 ===============
Item was added:
+ ----- Method: String>>beginsWithAnyOf: (in category 'comparing') -----
+ beginsWithAnyOf: aCollection
+ aCollection do:[:suffix|
+ (self beginsWith: suffix) ifTrue:[^true].
+ ].
+ ^false!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.133.mcz
==================== Summary ====================
Name: CollectionsTests-ul.133
Author: ul
Time: 29 January 2010, 2:13:08.142 am
UUID: 09bc2c7a-ddb8-a449-99e0-e70462cb30ec
Ancestors: CollectionsTests-nice.132
- a test for #utf8ToSqueak and Byte order mark
=============== Diff against CollectionsTests-nice.132 ===============
Item was added:
+ ----- Method: StringTest>>testUtf8ToSqueakByteOrderMark (in category 'tests - converting') -----
+ testUtf8ToSqueakByteOrderMark
+ "Ensure that utf8ToSqueak ignores Byte order mark (BOM) just like UTF8TextConverter does"
+
+ {
+ #('' '').
+ #('abc' 'abc').
+ "Make sure that we remove inner BOMs for maximal compatibility with UTF8TextConverter"
+ #('abc' 'abc').
+ { 'abcӒ'. 'abc', (Unicode value: 1234) asString }
+ } do: [ :each |
+ self assert: each first utf8ToSqueak = each second ]!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.133.mcz
==================== Summary ====================
Name: CollectionsTests-ul.133
Author: ul
Time: 29 January 2010, 2:13:08.142 am
UUID: 09bc2c7a-ddb8-a449-99e0-e70462cb30ec
Ancestors: CollectionsTests-nice.132
- a test for #utf8ToSqueak and Byte order mark
=============== Diff against CollectionsTests-nice.132 ===============
Item was added:
+ ----- Method: StringTest>>testUtf8ToSqueakByteOrderMark (in category 'tests - converting') -----
+ testUtf8ToSqueakByteOrderMark
+ "Ensure that utf8ToSqueak ignores Byte order mark (BOM) just like UTF8TextConverter does"
+
+ {
+ #('' '').
+ #('abc' 'abc').
+ "Make sure that we remove inner BOMs for maximal compatibility with UTF8TextConverter"
+ #('abc' 'abc').
+ { 'abcӒ'. 'abc', (Unicode value: 1234) asString }
+ } do: [ :each |
+ self assert: each first utf8ToSqueak = each second ]!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.133.mcz
==================== Summary ====================
Name: CollectionsTests-ul.133
Author: ul
Time: 29 January 2010, 2:13:08.142 am
UUID: 09bc2c7a-ddb8-a449-99e0-e70462cb30ec
Ancestors: CollectionsTests-nice.132
- a test for #utf8ToSqueak and Byte order mark
=============== Diff against CollectionsTests-nice.132 ===============
Item was added:
+ ----- Method: StringTest>>testUtf8ToSqueakByteOrderMark (in category 'tests - converting') -----
+ testUtf8ToSqueakByteOrderMark
+ "Ensure that utf8ToSqueak ignores Byte order mark (BOM) just like UTF8TextConverter does"
+
+ {
+ #('' '').
+ #('abc' 'abc').
+ "Make sure that we remove inner BOMs for maximal compatibility with UTF8TextConverter"
+ #('abc' 'abc').
+ { 'abcӒ'. 'abc', (Unicode value: 1234) asString }
+ } do: [ :each |
+ self assert: each first utf8ToSqueak = each second ]!