GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
void stripTrailingWhiteSpace(std::string& token){
  std::string::size_type lastNonWhiteSpace = token.find_last_not_of(scWhiteSpace);
  if(lastNonWhiteSpace != std::string::npos){
    token = token.substr(0, lastNonWhiteSpace+1);
  }
  
}