ReactOS 0.4.15-dev-8102-g108db8f
_Rope_find_char_char_consumer< _CharT > Class Template Reference
Inheritance diagram for _Rope_find_char_char_consumer< _CharT >:
Collaboration diagram for _Rope_find_char_char_consumer< _CharT >:

Public Member Functions

 _Rope_find_char_char_consumer (_CharT __p)
 
 ~_Rope_find_char_char_consumer ()
 
bool operator() (const _CharT *__leaf, size_t __n)
 
- Public Member Functions inherited from _Rope_char_consumer< _CharT >
virtual ~_Rope_char_consumer ()
 
virtual bool operator() (const _CharT *__buffer, size_t __len)=0
 

Public Attributes

size_t _M_count
 

Private Attributes

_CharT _M_pattern
 

Detailed Description

template<class _CharT>
class _Rope_find_char_char_consumer< _CharT >

Definition at line 735 of file _rope.c.

Constructor & Destructor Documentation

◆ _Rope_find_char_char_consumer()

template<class _CharT >
_Rope_find_char_char_consumer< _CharT >::_Rope_find_char_char_consumer ( _CharT  __p)
inline

Definition at line 740 of file _rope.c.

◆ ~_Rope_find_char_char_consumer()

template<class _CharT >
_Rope_find_char_char_consumer< _CharT >::~_Rope_find_char_char_consumer ( )
inline

Definition at line 742 of file _rope.c.

742{}

Member Function Documentation

◆ operator()()

template<class _CharT >
bool _Rope_find_char_char_consumer< _CharT >::operator() ( const _CharT *  __leaf,
size_t  __n 
)
inlinevirtual

Implements _Rope_char_consumer< _CharT >.

Definition at line 743 of file _rope.c.

743 {
744 size_t __i;
745 for (__i = 0; __i < __n; ++__i) {
746 if (__leaf[__i] == _M_pattern) {
747 _M_count += __i; return false;
748 }
749 }
750 _M_count += __n; return true;
751 }
return __n
Definition: _algo.h:75

Member Data Documentation

◆ _M_count

template<class _CharT >
size_t _Rope_find_char_char_consumer< _CharT >::_M_count

Definition at line 739 of file _rope.c.

Referenced by _Rope_find_char_char_consumer< _CharT >::operator()().

◆ _M_pattern

template<class _CharT >
_CharT _Rope_find_char_char_consumer< _CharT >::_M_pattern
private

Definition at line 737 of file _rope.c.

Referenced by _Rope_find_char_char_consumer< _CharT >::operator()().


The documentation for this class was generated from the following file: