2025-10-15 13:32:43 -07:00

31 lines
723 B
C++

#ifndef UTIL_H
#define UTIL_H
#include <string>
/**
* @brief Remove all white space after the content.
*
* @author Hayden Hargreaves (hhargreaves2006@gmail.com)
*/
void removeTrailingWhitespace(std::string &input);
/**
* @brief Remove all white space before the content.
*
* @author Hayden Hargreaves (hhargreaves2006@gmail.com)
*/
void removeLeadingWhitespace(std::string &input);
/**
* @brief Remove all white space before and after the content.
*
* This uses the removeTrailingWhitespace and the removeLeadingWhitespace
* methods together on the same string.
*
* @author Hayden Hargreaves (hhargreaves2006@gmail.com)
*/
void removeWhitespace(std::string &input);
#endif