boost::algorithm::ierase_last — Erase last algorithm ( case insensitive )
// In header: <boost/algorithm/string/erase.hpp> template<typename SequenceT, typename RangeT> ( Input, Search, Loc = );
Remove the last occurrence of the substring from the input. The input sequence is modified in-place. Searching is case insensitive.
Parameters:
Input
An input string
Loc
A locale used for case insensitive comparison
Search
A substring to be searched for