Function find_first_not_of

Summary

#include <include/EASTL/string.h>

(1) size_type find_first_not_of(const this_type &x, size_type position=0) const EA_NOEXCEPT

(2) size_type find_first_not_of(const value_type *p, size_type position=0) const

(3) size_type find_first_not_of(const value_type *p, size_type position, size_type n) const

(4) size_type find_first_not_of(value_type c, size_type position=0) const EA_NOEXCEPT

Function overload

Synopsis

#include <include/EASTL/string.h>

size_type find_first_not_of(const this_type &x, size_type position=0) const EA_NOEXCEPT

Description

Find first not-of operations.

Source

Lines 2841-2846 in include/EASTL/string.h. Line 706 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_not_of(const this_type& x, size_type position) const EA_NOEXCEPT
{
    return find_first_not_of(x.internalLayout().BeginPtr(), position, x.internalLayout().GetSize());
}

Synopsis

#include <include/EASTL/string.h>

size_type find_first_not_of(const value_type *p, size_type position=0) const

Description

No description yet.

Source

Lines 2849-2854 in include/EASTL/string.h. Line 707 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_not_of(const value_type* p, size_type position) const
{
    return find_first_not_of(p, position, (size_type)CharStrlen(p));
}

Synopsis

#include <include/EASTL/string.h>

size_type find_first_not_of(const value_type *p, size_type position, size_type n) const

Description

No description yet.

Source

Lines 2857-2870 in include/EASTL/string.h. Line 708 in include/EASTL/string.h.

template <typename T, typename Allocator>
typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_not_of(const value_type* p, size_type position, size_type n) const
{
    if(EASTL_LIKELY(position <= internalLayout().GetSize()))
    {
        const const_iterator pResult =
            CharTypeStringFindFirstNotOf(internalLayout().BeginPtr() + position, internalLayout().EndPtr(), p, p + n);
        if(pResult != internalLayout().EndPtr())
            return (size_type)(pResult - internalLayout().BeginPtr());
    }
    return npos;
}

Synopsis

#include <include/EASTL/string.h>

size_type find_first_not_of(value_type c, size_type position=0) const EA_NOEXCEPT

Description

No description yet.

Source

Lines 2873-2887 in include/EASTL/string.h. Line 709 in include/EASTL/string.h.

template <typename T, typename Allocator>
typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_not_of(value_type c, size_type position) const EA_NOEXCEPT
{
    if(EASTL_LIKELY(position <= internalLayout().GetSize()))
    {
        // Todo: Possibly make a specialized version of CharTypeStringFindFirstNotOf(pBegin, pEnd, c).
        const const_iterator pResult =
            CharTypeStringFindFirstNotOf(internalLayout().BeginPtr() + position, internalLayout().EndPtr(), &c, &c + 1);
        if(pResult != internalLayout().EndPtr())
            return (size_type)(pResult - internalLayout().BeginPtr());
    }
    return npos;
}





Add Discussion as Guest

Log in