| 59 | // Search for first non matching character from the beginning of the sequence |
| 60 | template< typename ForwardIteratorT, typename PredicateT > |
| 61 | inline ForwardIteratorT trim_begin( |
| 62 | ForwardIteratorT InBegin, |
| 63 | ForwardIteratorT InEnd, |
| 64 | PredicateT IsSpace ) |
| 65 | { |
| 66 | ForwardIteratorT It=InBegin; |
| 67 | for(; It!=InEnd; ++It ) |
| 68 | { |
| 69 | if (!IsSpace(*It)) |
| 70 | return It; |
| 71 | } |
| 72 | |
| 73 | return It; |
| 74 | } |
| 75 | |
| 76 | // Search for first non matching character from the end of the sequence |
| 77 | template< typename ForwardIteratorT, typename PredicateT > |
no outgoing calls
no test coverage detected