44 using namespace Teuchos;
48 const unsigned int maxToRead)
52 int toRead =
static_cast<int>(
text_.length() -
pos_);
53 if ((
int) maxToRead < toRead) toRead = maxToRead;
55 std::strncpy((
char*) toFill,
text_.c_str()+
pos_, toRead);
59 return (
size_t) toRead;