PeekableStream.st
changeset 22631 0d5b91cf33cd
parent 22416 3d6e05b588a1
child 22704 16879059c1cb
equal deleted inserted replaced
22630:b19dbde11fd3 22631:0d5b91cf33cd
   883     "Modified: / 10-01-2018 / 18:29:51 / stefan"
   883     "Modified: / 10-01-2018 / 18:29:51 / stefan"
   884     "Modified (comment): / 10-01-2018 / 23:18:08 / stefan"
   884     "Modified (comment): / 10-01-2018 / 23:18:08 / stefan"
   885 !
   885 !
   886 
   886 
   887 upToAny:aCollectionOfObjects
   887 upToAny:aCollectionOfObjects
   888     "read a collection of all objects up-to a element which is contained in
   888     "read a collection of all objects up to an element that is contained in
   889      aCollectionOfObjects and return these elements, but excluding the matching one.
   889      aCollectionOfObjects and return these elements, but excluding the matching one.
   890      The next read operation will return the element AFTER anObject.
   890      The next read operation will return the element AFTER anObject.
   891      If no such element is encountered, all elements up to the end are read
   891      If no such element is encountered, all elements up to the end are read
   892      and returned.
   892      and returned.
   893      Compare this with #throughAll: which also reads up to some object
   893      Compare this with #throughAll: which also reads up to some object
   914     "Created: / 30.8.1997 / 03:02:05 / cg"
   914     "Created: / 30.8.1997 / 03:02:05 / cg"
   915     "Modified: / 11.1.1998 / 15:19:18 / cg"
   915     "Modified: / 11.1.1998 / 15:19:18 / cg"
   916 !
   916 !
   917 
   917 
   918 upToBeforeAny:aCollectionOfObjects
   918 upToBeforeAny:aCollectionOfObjects
   919     "read a collection of all objects up-to a element which is contained in
   919     "read a collection of all objects up to an element that is contained in
   920      aCollectionOfObjects and return these elements, but excluding the matching one.
   920      aCollectionOfObjects and return these elements, but excluding the matching one.
   921      The next read operation will return the matching element.
   921      The next read operation will return the matching element.
   922      If no such element is encountered, all elements up to the end are read
   922      If no such element is encountered, all elements up to the end are read
   923      and returned.
   923      and returned.
   924      This returns the exact same as upToAny: would, but leaves the stream's position so that
   924      This returns the exact same as upToAny: would, but leaves the stream's position so that