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

Changeset 3864

Show
Ignore:
Timestamp:
08/07/08 14:05:11 (4 months ago)
Author:
kris
Message:

fixed formatting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/net/http/ChunkStream.d

    r3863 r3864  
    108108        private alias void delegate(char[] line) Headers; 
    109109 
    110         private Headers headers; 
    111         private uint    available; 
     110        private Headers         headers; 
     111        private uint            available; 
    112112 
    113113        /*********************************************************************** 
     
    120120        this (InputStream stream, Headers headers = null) 
    121121        { 
    122                 set(stream); 
     122                set (stream); 
    123123                this.headers = headers; 
    124124        } 
     
    126126        /*********************************************************************** 
    127127 
    128                 Read and parse another chunk size 
    129  
    130         ***********************************************************************/ 
    131  
    132         private final uint nextChunk () 
    133         { 
    134                 char[] tmp; 
    135  
    136                 if ((tmp = super.next).ptr) 
    137                      return cast(uint) Integer.parse (tmp, 16); 
    138                 return 0; 
    139         } 
    140  
    141         /*********************************************************************** 
    142  
    143128                Reset ChunkInput to a new InputStream 
    144129 
     
    147132        override ChunkInput set (InputStream stream) 
    148133        { 
    149             super.set(stream); 
    150             available = nextChunk; 
    151             return this; 
     134                super.set (stream); 
     135                available = nextChunk; 
     136                return this; 
    152137        } 
    153138 
     
    183168                return read; 
    184169        } 
     170 
     171        /*********************************************************************** 
     172 
     173                Read and parse another chunk size 
     174 
     175        ***********************************************************************/ 
     176 
     177        private final uint nextChunk () 
     178        { 
     179                char[] tmp; 
     180 
     181                if ((tmp = super.next).ptr) 
     182                     return cast(uint) Integer.parse (tmp, 16); 
     183                return 0; 
     184        } 
    185185} 
    186186