MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / find

Method find

include/win/boost/test/utils/basic_cstring/basic_cstring.hpp:498–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497template<typename CharT>
498inline typename basic_cstring<CharT>::size_type
499basic_cstring<CharT>::find( basic_cstring<CharT> str ) const
500{
501 if( str.is_empty() || str.size() > size() )
502 return static_cast<size_type>(npos);
503
504 const_iterator it = begin();
505 const_iterator last = end() - str.size() + 1;
506
507 while( it != last ) {
508 if( traits_type::compare( it, str.begin(), str.size() ) == 0 )
509 break;
510
511 ++it;
512 }
513
514 return it == last ? npos : static_cast<size_type>(it - begin());
515}
516
517//____________________________________________________________________________//
518

Callers 6

print_escaped_cdataFunction · 0.45
load_implMethod · 0.45
get_next_lineMethod · 0.45
get_macro_valueMethod · 0.45
process_command_lineMethod · 0.45
substitute_macrosMethod · 0.45

Calls 7

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

Tested by

no test coverage detected