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

Function GetPackageName

renderdoc/android/android_utils.cpp:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63rdcstr GetPackageName(const rdcstr &packageAndActivity)
64{
65 if(packageAndActivity.empty())
66 return "";
67
68 int32_t start = 0;
69 if(packageAndActivity[0] == '/')
70 start++;
71
72 int32_t activitySep = packageAndActivity.find('/', start);
73
74 if(activitySep < 0)
75 return packageAndActivity.substr(start);
76
77 return packageAndActivity.substr(start, activitySep - start);
78}
79
80rdcstr GetActivityName(const rdcstr &packageAndActivity)
81{

Callers 2

ExecuteAndInjectMethod · 0.85

Calls 3

emptyMethod · 0.45
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected