MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetFirstMatchingLine

Function GetFirstMatchingLine

renderdoc/android/android_utils.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299rdcstr GetFirstMatchingLine(const rdcstr &haystack, const rdcstr &needle)
300{
301 int needleOffset = haystack.find(needle);
302
303 if(needleOffset == -1)
304 return rdcstr();
305
306 int nextLine = haystack.find('\n', needleOffset + 1);
307
308 return haystack.substr(needleOffset, nextLine == -1 ? ~0U : size_t(nextLine - needleOffset));
309}
310
311bool IsDebuggable(const rdcstr &deviceID, const rdcstr &packageName)
312{

Callers 2

IsDebuggableFunction · 0.85

Calls 3

rdcstrClass · 0.85
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected