Function CharTypeStringRFindFirstNotOf
Synopsis
#include <include/EASTL/string.h>
static const value_type * CharTypeStringRFindFirstNotOf(const value_type *p1RBegin, const value_type *p1REnd, const value_type *p2Begin, const value_type *p2End)
Description
CharTypeStringRFindFirstNotOf Specialized value_type version of STL find_first_not_of() function in reverse.
Source
Lines 3582-3599 in include/EASTL/string.h. Line 788 in include/EASTL/string.h.
template <typename T, typename Allocator>
const typename basic_string<T, Allocator>::value_type*
basic_string<T, Allocator>::CharTypeStringRFindFirstNotOf(const value_type* p1RBegin, const value_type* p1REnd,
const value_type* p2Begin, const value_type* p2End)
{
for( ; p1RBegin != p1REnd; --p1RBegin)
{
const value_type* pTemp;
for(pTemp = p2Begin; pTemp != p2End; ++pTemp)
{
if(*(p1RBegin-1) == *pTemp)
break;
}
if(pTemp == p2End)
return p1RBegin;
}
return p1REnd;
}