Karyn,
This shows using #runsFailing: on a string containing the three line separator types:
| s |
s := (WriteStream on: String new)
cr; nextPutAll: 'one';
crlf; nextPutAll: 'two';
nextPut: Character lf; nextPutAll: 'three';
contents.
^s runsFailing: [:chr | chr asInteger = 10 or: [ chr asInteger = 13]].
The result will be an OrderedCollection. It is faster if you use #runsFailing:do: to skip the OC creation and memory held (if your application needs allow).
Paul Baumann
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Karyn Hurley
Sent: Thursday, December 16, 2010 11:27
To:
[hidden email]
Subject: [vwnc] vw 7.7.1 String support methods
In moving applications from VW7.4->VW7.7.1 I see that the Collections-String
Support ByteString method list has changed and the method asArrayOfLines no
longer exists. Is there a substitute in 7.7 or a suggestion on what
methods to use to achieve the same results?
Thanks,
Karyn Hurley
IBM
--
View this message in context:
http://forum.world.st/vw-7-7-1-String-support-methods-tp3091180p3091180.htmlSent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwncThis message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc