inline void trim_right_if(SequenceT& Input)
{
    Input.erase(
        trim_end( 
            Input.begin(), 
            Input.end() ),
        Input.end()
        );
}
예제 #2
0
파일: trim.hpp 프로젝트: 00liujj/dealii
 inline void trim_left_if(SequenceT& Input, PredicateT IsSpace)
 {
     Input.erase( 
         ::boost::begin(Input),
         ::boost::algorithm::detail::trim_begin( 
             ::boost::begin(Input), 
             ::boost::end(Input), 
             IsSpace));
 }
inline void trim_left_if(SequenceT& Input)
{
    Input.erase( 
        Input.begin(),
        trim_begin( 
            Input.begin(), 
            Input.end() )
        );
}
예제 #4
0
파일: trim.hpp 프로젝트: Iinvictus/mars
 inline void trim_right_if(SequenceT& Input, PredicateT IsSpace)
 {
     Input.erase(
         ::mars_boost::algorithm::detail::trim_end( 
             ::mars_boost::begin(Input), 
             ::mars_boost::end(Input), 
             IsSpace ),
         ::mars_boost::end(Input)
         );
 }