equal
deleted
inserted
replaced
666 read operations will return those elements. |
666 read operations will return those elements. |
667 If no such subcollection is encountered, all elements up to the end |
667 If no such subcollection is encountered, all elements up to the end |
668 are read and returned. |
668 are read and returned. |
669 See also #throughAll: which also reads up to some objects |
669 See also #throughAll: which also reads up to some objects |
670 but positions behind it and DOES include it in the returned |
670 but positions behind it and DOES include it in the returned |
671 collection. |
671 collection." |
672 See also #upToAllExcluding:, which returns the same, but leaves the |
|
673 read pointer after the matched subcollection. |
|
674 |
|
675 Note: this behavior is inconsistent with the other upTo.. methods, |
|
676 which position after the found item. We implement the method |
|
677 this way for the sake of ST80-compatibility." |
|
678 |
672 |
679 |answerStream element last| |
673 |answerStream element last| |
680 |
674 |
681 last := aCollection last. |
675 last := aCollection last. |
682 answerStream := WriteStream on:(self contentsSpecies new:100). |
676 answerStream := WriteStream on:(self contentsSpecies new:100). |
747 ! ! |
741 ! ! |
748 |
742 |
749 !PositionableStream class methodsFor:'documentation'! |
743 !PositionableStream class methodsFor:'documentation'! |
750 |
744 |
751 version |
745 version |
752 ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.166 2014-03-05 10:02:58 stefan Exp $' |
746 ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.167 2014-09-16 11:11:38 stefan Exp $' |
753 ! |
747 ! |
754 |
748 |
755 version_CVS |
749 version_CVS |
756 ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.166 2014-03-05 10:02:58 stefan Exp $' |
750 ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.167 2014-09-16 11:11:38 stefan Exp $' |
757 ! ! |
751 ! ! |
758 |
752 |
759 |
753 |
760 PositionableStream initialize! |
754 PositionableStream initialize! |