31 char const *
const base = text.c_str();
32 char *
dest = (
char *)base;
45 while( dest > base && dest[-1] ==
' ' )
52 if( *src && *src !=
'\n' && dest > base )
55 if( dest[-1] !=
':' && dest[-1] !=
'\n' )
63 text.resize( dest - base );
GLsizei const GLchar *const * string
std::string trim_newlines(std::string text)