| 120 | } |
| 121 | |
| 122 | std::string IStreamCinder::readLine() |
| 123 | { |
| 124 | string result; |
| 125 | int8_t ch; |
| 126 | while( ! isEof() ) { |
| 127 | read( &ch ); |
| 128 | if( ch == 0x0A ) |
| 129 | break; |
| 130 | else if( ch == 0x0D ) { |
| 131 | read( &ch ); |
| 132 | if( ch != 0x0A ) |
| 133 | seekRelative( -1 ); |
| 134 | break; |
| 135 | } |
| 136 | else |
| 137 | result += ch; |
| 138 | } |
| 139 | |
| 140 | return result; |
| 141 | } |
| 142 | |
| 143 | void IStreamCinder::readData( void *t, size_t size ) |
| 144 | { |
no test coverage detected