MCPcopy Create free account
hub / github.com/cinder/Cinder / readLine

Method readLine

src/cinder/Stream.cpp:122–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122std::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
143void IStreamCinder::readData( void *t, size_t size )
144{

Callers 3

DictionaryMethod · 0.80
parseMaterialMethod · 0.80
parseMethod · 0.80

Calls 3

seekRelativeFunction · 0.85
isEofFunction · 0.50
readFunction · 0.50

Tested by

no test coverage detected