12 using namespace Teuchos;
16 const unsigned int maxToRead)
18 if (pos_ == text_.length())
return 0;
20 int toRead =
static_cast<int>(text_.length() - pos_);
21 if ((
int) maxToRead < toRead) toRead = maxToRead;
23 std::strncpy((
char*) toFill, text_.c_str()+pos_, toRead);
27 return (
size_t) toRead;