MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / parseResourceName

Function parseResourceName

tools/aapt/Resource.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51// ==========================================================================
52
53static String8 parseResourceName(const String8& leaf)
54{
55 const char* firstDot = strchr(leaf.string(), '.');
56 const char* str = leaf.string();
57
58 if (firstDot) {
59 return String8(str, firstDot-str);
60 } else {
61 return String8(str);
62 }
63}
64
65ResourceTypeSet::ResourceTypeSet()
66 :RefBase(),

Callers 1

nextMethod · 0.85

Calls 1

stringMethod · 0.80

Tested by

no test coverage detected