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

Changeset 3152

Show
Ignore:
Timestamp:
02/01/08 00:24:44 (8 months ago)
Author:
kris
Message:

added comment() and newline() methods to MapOutput?. Closes #777

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/stream/MapStream.d

    r2885 r3152  
    118118        private IBuffer output; 
    119119 
     120        private const T[] prefix = "# "; 
    120121        private const T[] equals = " = "; 
    121122        version (Win32) 
     
    148149        /*********************************************************************** 
    149150 
    150                 Write name & value to the provided stream 
     151                Append a newline to the provided stream 
     152 
     153        ***********************************************************************/ 
     154 
     155        final MapOutput newline () 
     156        { 
     157                output (NL); 
     158                return this; 
     159        } 
     160 
     161        /*********************************************************************** 
     162 
     163                Append a comment to the provided stream 
     164 
     165        ***********************************************************************/ 
     166 
     167        final MapOutput comment (T[] text) 
     168        { 
     169                output (prefix) (text) (NL); 
     170                return this; 
     171        } 
     172 
     173        /*********************************************************************** 
     174 
     175                Append name & value to the provided stream 
    151176 
    152177        ***********************************************************************/ 
     
    160185        /*********************************************************************** 
    161186 
    162                 Write AA properties to the provided stream 
     187                Append AA properties to the provided stream 
    163188 
    164189        ***********************************************************************/