Function CharTypeStringRFind

Synopsis

#include <include/EASTL/string.h>

static const value_type * CharTypeStringRFind(const value_type *pRBegin, const value_type *pREnd, const value_type c)

Description

CharTypeStringRFind Specialized value_type version of STL find() function in reverse.

Source

Lines 3405-3416 in include/EASTL/string.h. Line 782 in include/EASTL/string.h.

template <typename T, typename Allocator>
const typename basic_string<T, Allocator>::value_type*
basic_string<T, Allocator>::CharTypeStringRFind(const value_type* pRBegin, const value_type* pREnd, const value_type c)
{
    while(pRBegin > pREnd)
    {
        if(*(pRBegin - 1) == c)
            return pRBegin;
        --pRBegin;
    }
    return pREnd;
}





Add Discussion as Guest

Log in