SyTen

◆ stripEnd()

std::string syten::stripEnd ( std::string const &  a,
std::string const &  to_strip 
)

Strips all occurences of to_strip from the end of a, if possible.

Parameters
ainput string
to_stripstring to remove from the end of a
Returns
input string a with to_strip removed at the end, if possible.

References std::string::size(), and std::string::substr().

Referenced by do_apply_op().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: