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

Method find_last_not_of

src/common/classes/fb_string.cpp:291–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 AbstractString::size_type AbstractString::find_last_not_of(const_pointer s, const size_type pos, size_type n) const
292 {
293 const strBitMask sm(s, n);
294 int lpos = length() - 1;
295 if (static_cast<int>(pos) < lpos && pos != npos) {
296 lpos = pos;
297 }
298 const_pointer p = &c_str()[lpos];
299 while (lpos >= 0)
300 {
301 if (! sm.Contains(*p--)) {
302 return lpos;
303 }
304 --lpos;
305 }
306 return npos;
307 }
308
309 bool AbstractString::LoadFromFile(FILE* file)
310 {

Callers 1

testFunction · 0.45

Calls 2

lengthFunction · 0.50
ContainsMethod · 0.45

Tested by 1

testFunction · 0.36