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

Function find

include/win/boost/container/string.hpp:1940–1941  ·  view source on GitHub ↗

Effects : Determines the lowest position xpos, if possible, such that both of the following conditions obtain: 19 pos <= xpos and xpos + str.size() <= size(); 2) traits::eq(at(xpos+I), str.at(I)) for all elements I of the string controlled by str. Throws : Nothing Returns : xpos if the function can determine such a value for xpos. Otherwise, returns npos.

Source from the content-addressed store, hash-verified

1938 //!
1939 //! <b>Returns</b>: xpos if the function can determine such a value for xpos. Otherwise, returns npos.
1940 size_type find(const basic_string& s, size_type pos = 0) const
1941 { return find(s.c_str(), pos, s.size()); }
1942
1943 //! <b>Requires</b>: s points to an array of at least n elements of CharT.
1944 //!

Callers 1

find_first_ofFunction · 0.70

Calls 11

bind2ndFunction · 0.85
priv_addrMethod · 0.80
priv_sizeMethod · 0.80
searchClass · 0.50
to_raw_pointerFunction · 0.50
beginFunction · 0.50
lengthFunction · 0.50
find_ifClass · 0.50
c_strMethod · 0.45
sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected