MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / trim

Function trim

include/dpp/stringops.h:93–96  ·  view source on GitHub ↗

* @brief Trim from both ends of string (right then left) * * @param s string to trim * @return std::string trimmed string */

Source from the content-addressed store, hash-verified

91 * @return std::string trimmed string
92 */
93inline std::string trim(std::string s)
94{
95 return ltrim(rtrim(s));
96}
97
98/**
99 * @brief Add commas to a string (or dots) based on current locale server-side

Callers 5

changelog.phpFile · 0.85
make_struct.phpFile · 0.85
__constructMethod · 0.85
guild.cppFile · 0.85
current_date_timeFunction · 0.85

Calls 2

ltrimFunction · 0.85
rtrimFunction · 0.85

Tested by

no test coverage detected