MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / find

Method find

extern/boost/boost/test/utils/basic_cstring/basic_cstring.hpp:547–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545
546template<typename CharT>
547inline typename basic_cstring<CharT>::size_type
548basic_cstring<CharT>::find( basic_cstring<CharT> str ) const
549{
550 if( str.is_empty() || str.size() > size() )
551 return static_cast<size_type>(npos);
552
553 const_iterator it = begin();
554 const_iterator last = end() - str.size() + 1;
555
556 while( it != last ) {
557 if( traits_type::compare( it, str.begin(), str.size() ) == 0 )
558 break;
559
560 ++it;
561 }
562
563 return it == last ? npos : static_cast<size_type>(it - begin());
564}
565
566//____________________________________________________________________________//
567

Callers 15

concept_check.hppFile · 0.45
getFunction · 0.45
BOOST_TEST_FOREACHFunction · 0.45
print_escaped_cdataFunction · 0.45
hasMethod · 0.45
arguments_storeClass · 0.45
interpretMethod · 0.45
hasMethod · 0.45
getMethod · 0.45
make_subtrieMethod · 0.45

Calls 7

sizeFunction · 0.50
beginFunction · 0.50
endFunction · 0.50
compareFunction · 0.50
is_emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected