26 size_t orig_pos = _pos;
27 _pos = std::min(_pos + length, _data.length());
28 return _data.substr(orig_pos, length);
42 while (_pos < _data.length() && _data[_pos] !=
'\n') {
46 if (_pos < _data.length() && _data[_pos] ==
'\n') {
51 return _data.substr(start, _pos - start);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::string read(size_t length)
Extracts and returns the indicated number of characters from the current data pointer,...
std::string readline()
Assumes the stream represents a text file, and extracts one line up to and including the trailing new...