Function find_first_of

Summary

#include <include/EASTL/string.h>

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

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

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

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

Function overload

Synopsis

#include <include/EASTL/string.h>

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

Description

Find first-of operations.

Source

Lines 2757-2762 in include/EASTL/string.h. Line 694 in include/EASTL/string.h.

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

Synopsis

#include <include/EASTL/string.h>

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

Description

No description yet.

Source

Lines 2765-2770 in include/EASTL/string.h. Line 695 in include/EASTL/string.h.

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

Synopsis

#include <include/EASTL/string.h>

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

Description

No description yet.

Source

Lines 2773-2787 in include/EASTL/string.h. Line 696 in include/EASTL/string.h.

template <typename T, typename Allocator>
typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_of(const value_type* p, size_type position, size_type n) const
{
    // If position is >= size, we return npos.
    if(EASTL_LIKELY((position < internalLayout().GetSize())))
    {
        const value_type* const pBegin = internalLayout().BeginPtr() + position;
        const const_iterator pResult   = CharTypeStringFindFirstOf(pBegin, 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_of(value_type c, size_type position=0) const EA_NOEXCEPT

Description

No description yet.

Source

Lines 2790-2795 in include/EASTL/string.h. Line 697 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline typename basic_string<T, Allocator>::size_type
basic_string<T, Allocator>::find_first_of(value_type c, size_type position) const EA_NOEXCEPT
{
    return find(c, position);
}





Add Discussion as Guest

Log in