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

Method find_last_of

src/common/classes/fb_string.cpp:259–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 AbstractString::size_type AbstractString::find_last_of(const_pointer s, const size_type pos, size_type n) const
260 {
261 const strBitMask sm(s, n);
262 int lpos = length() - 1;
263 if (static_cast<int>(pos) < lpos && pos != npos) {
264 lpos = pos;
265 }
266 const_pointer p = &c_str()[lpos];
267 while (lpos >= 0)
268 {
269 if (sm.Contains(*p--)) {
270 return lpos;
271 }
272 --lpos;
273 }
274 return npos;
275 }
276
277 AbstractString::size_type AbstractString::find_first_not_of(const_pointer s, size_type pos, size_type n) const
278 {

Callers 7

parameter.hppFile · 0.45
sql_infoFunction · 0.45
prepareRecSourceMethod · 0.45
ShortToLongPathNameFunction · 0.45
testFunction · 0.45
concatPathMethod · 0.45

Calls 2

lengthFunction · 0.50
ContainsMethod · 0.45

Tested by 1

testFunction · 0.36