MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / strRFind

Function strRFind

Source/3rdParty/bx/src/string.cpp:383–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 }
382
383 StringView strRFind(const StringView& _str, char _ch)
384 {
385 const char* ptr = strRFindUnsafe(_str.getPtr(), _str.getLength(), _ch);
386 if (NULL == ptr)
387 {
388 return StringView(_str.getTerm(), _str.getTerm() );
389 }
390
391 return StringView(ptr, ptr+1);
392 }
393
394 template<CharFn fn>
395 inline const char* strFind(const char* _str, int32_t _strMax, const char* _find, int32_t _findMax)

Callers 3

makeAllFunction · 0.85
getPathMethod · 0.85
getFileNameMethod · 0.85

Calls 3

strRFindUnsafeFunction · 0.85
StringViewClass · 0.50
getLengthMethod · 0.45

Tested by

no test coverage detected