Example #1
0
	/// @brief Gets a copy of a string with characters of a certain type trimmed from the right.
	/// @param mStr String to trim. (will not be modified)
	/// @param mChar Character to trim.
	/// @return Returns a copy of the string, trimmed.
	inline auto getTrimStrR(std::string mStr, char mChar = ' ') { trimStrR(mStr, mChar); return mStr; }
Example #2
0
	/// @brief Gets a copy of a string with characters of a certain type trimmed from the right.
	/// @param mStr String to trim. (will not be modified)
	/// @param mChar Character to trim.
	/// @return Returns a copy of the string, trimmed.
	inline std::string getTrimmedStrR(std::string mStr, char mChar = ' ') { trimStrR(mStr, mChar); return mStr; }