Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2658

Show
Ignore:
Timestamp:
10/18/07 22:26:54 (1 year ago)
Author:
kris
Message:

added some notes about slices and .dup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/stream/LineIterator.d

    r2585 r2658  
    1818 
    1919        Iterate across a set of text patterns. 
     20 
     21        Each pattern is exposed to the client as a slice of the original 
     22        content, where the slice is transient. If you need to retain the 
     23        exposed content, then you should .dup it appropriately.  
    2024 
    2125        These iterators are based upon the IBuffer construct, and can 
  • trunk/tango/text/stream/QuoteIterator.d

    r2585 r2658  
    1818 
    1919        Iterate across a set of text patterns. 
     20 
     21        Each pattern is exposed to the client as a slice of the original 
     22        content, where the slice is transient. If you need to retain the 
     23        exposed content, then you should .dup it appropriately.  
    2024 
    2125        These iterators are based upon the IBuffer construct, and can 
  • trunk/tango/text/stream/RegexIterator.d

    r2585 r2658  
    2020 
    2121        Iterate across a set of text patterns. 
     22 
     23        Each pattern is exposed to the client as a slice of the original 
     24        content, where the slice is transient. If you need to retain the 
     25        exposed content, then you should .dup it appropriately.  
    2226 
    2327        These iterators are based upon the IBuffer construct, and can 
  • trunk/tango/text/stream/SimpleIterator.d

    r2585 r2658  
    1818 
    1919        Iterate across a set of text patterns. 
     20 
     21        Each pattern is exposed to the client as a slice of the original 
     22        content, where the slice is transient. If you need to retain the 
     23        exposed content, then you should .dup it appropriately.  
    2024 
    2125        These iterators are based upon the IBuffer construct, and can 
  • trunk/tango/text/stream/StreamIterator.d

    r2626 r2658  
    3535        exclusive variety only. 
    3636 
     37        Each pattern is exposed to the client as a slice of the original 
     38        content, where the slice is transient. If you need to retain the 
     39        exposed content, then you should .dup it appropriately.  
     40 
    3741        The content provided to these iterators is intended to be fully 
    3842        read-only. All current tokenizers abide by this rule, but it is