Function trim_head

Summary

#include "breeze/text/trim_head.hpp"

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

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

Function overload

Synopsis

#include "breeze/text/trim_head.hpp"

std::string trim_head(std::string const &s, std::locale const &loc=std::locale())

Description

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

Source

Line 31 in breeze/text/trim_head.hpp.

Synopsis

#include "breeze/text/trim_head.hpp"

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

Description

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

Source

Line 41 in breeze/text/trim_head.hpp.