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

Method find_first_of

src/common/classes/fb_string.cpp:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 AbstractString::size_type AbstractString::find_first_of(const_pointer s, size_type pos, size_type n) const
246 {
247 const strBitMask sm(s, n);
248 const_pointer p = &c_str()[pos];
249 while (pos < length())
250 {
251 if (sm.Contains(*p++)) {
252 return pos;
253 }
254 ++pos;
255 }
256 return npos;
257 }
258
259 AbstractString::size_type AbstractString::find_last_of(const_pointer s, const size_type pos, size_type n) const
260 {

Callers 14

read_string_whileFunction · 0.45
str2ArrayMethod · 0.45
planSetMethod · 0.45
ISC_analyze_pclanFunction · 0.45
ISC_analyze_protocolFunction · 0.45
ShortToLongPathNameFunction · 0.45
ISC_escapeFunction · 0.45
ISC_unescapeFunction · 0.45
parseMethod · 0.45
testFunction · 0.45
concatPathMethod · 0.45
getUniqueFileIdFunction · 0.45

Calls 2

lengthFunction · 0.50
ContainsMethod · 0.45

Tested by 1

testFunction · 0.36