Function find_last_not_of
Summary
#include <include/EASTL/string.h>
(1) size_type find_last_not_of(const this_type &x, size_type position=npos) const EA_NOEXCEPT
(2) size_type find_last_not_of(const value_type *p, size_type position=npos) const
(3) size_type find_last_not_of(const value_type *p, size_type position, size_type n) const
(4) size_type find_last_not_of(value_type c, size_type position=npos) const EA_NOEXCEPT
Function overload
Synopsis
#include <include/EASTL/string.h>
size_type find_last_not_of(const this_type &x, size_type position=npos) const EA_NOEXCEPT
Description
Find last not-of operations.
Source
Lines 2890-2895 in include/EASTL/string.h. Line 712 in include/EASTL/string.h.
template <typename T, typename Allocator>
inline typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_last_not_of(const this_type& x, size_type position) const EA_NOEXCEPT
{
return find_last_not_of(x.internalLayout().BeginPtr(), position, x.internalLayout().GetSize());
}
Synopsis
#include <include/EASTL/string.h>
size_type find_last_not_of(const value_type *p, size_type position=npos) const
Description
No description yet.
Source
Lines 2898-2903 in include/EASTL/string.h. Line 713 in include/EASTL/string.h.
template <typename T, typename Allocator>
inline typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_last_not_of(const value_type* p, size_type position) const
{
return find_last_not_of(p, position, (size_type)CharStrlen(p));
}
Synopsis
#include <include/EASTL/string.h>
size_type find_last_not_of(const value_type *p, size_type position, size_type n) const
Description
No description yet.
Source
Lines 2906-2921 in include/EASTL/string.h. Line 714 in include/EASTL/string.h.
template <typename T, typename Allocator>
typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_last_not_of(const value_type* p, size_type position, size_type n) const
{
const size_type nLength = internalLayout().GetSize();
if(EASTL_LIKELY(nLength))
{
const value_type* const pEnd = internalLayout().BeginPtr() + eastl::min_alt(nLength - 1, position) + 1;
const value_type* const pResult = CharTypeStringRFindFirstNotOf(pEnd, internalLayout().BeginPtr(), p, p + n);
if(pResult != internalLayout().BeginPtr())
return (size_type)((pResult - 1) - internalLayout().BeginPtr());
}
return npos;
}
Synopsis
#include <include/EASTL/string.h>
size_type find_last_not_of(value_type c, size_type position=npos) const EA_NOEXCEPT
Description
No description yet.
Source
Lines 2924-2940 in include/EASTL/string.h. Line 715 in include/EASTL/string.h.
template <typename T, typename Allocator>
typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_last_not_of(value_type c, size_type position) const EA_NOEXCEPT
{
const size_type nLength = internalLayout().GetSize();
if(EASTL_LIKELY(nLength))
{
// Todo: Possibly make a specialized version of CharTypeStringRFindFirstNotOf(pBegin, pEnd, c).
const value_type* const pEnd = internalLayout().BeginPtr() + eastl::min_alt(nLength - 1, position) + 1;
const value_type* const pResult = CharTypeStringRFindFirstNotOf(pEnd, internalLayout().BeginPtr(), &c, &c + 1);
if(pResult != internalLayout().BeginPtr())
return (size_type)((pResult - 1) - internalLayout().BeginPtr());
}
return npos;
}