MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / DotToDescriptor

Function DotToDescriptor

Bcore/src/main/cpp/dex/descriptors_names.cc:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128std::string DotToDescriptor(const char* class_name) {
129 std::string descriptor(class_name);
130 std::replace(descriptor.begin(), descriptor.end(), '.', '/');
131 if (descriptor.length() > 0 && descriptor[0] != '[') {
132 descriptor = "L" + descriptor + ";";
133 }
134 return descriptor;
135}
136
137std::string DescriptorToDot(const char* descriptor) {
138 size_t length = strlen(descriptor);

Callers

nothing calls this directly

Calls 4

replaceFunction · 0.85
lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected