Function trim

Summary

#include "breeze/text/trim.hpp"

(1) std::string trim(std::string const &s, std::locale const &loc)

(2) std::string trim(std::string const &s, set_of_chars const &to_be_removed)

Function overload

Synopsis

#include "breeze/text/trim.hpp"

std::string trim(std::string const &s, std::locale const &loc)

Description

Returns
A string obtained from s by removing all the leading and all the trailing characters c for which std::isspace( c, loc ) returns true.

Source

Line 32 in breeze/text/trim.hpp.

Synopsis

#include "breeze/text/trim.hpp"

std::string trim(std::string const &s, set_of_chars const &to_be_removed)

Description

Returns
A string obtained from s by removing all the leading and all the trailing characters that are also contained in to_be_removed.

Source

Line 42 in breeze/text/trim.hpp.