| 126 | } |
| 127 | |
| 128 | std::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 | |
| 137 | std::string DescriptorToDot(const char* descriptor) { |
| 138 | size_t length = strlen(descriptor); |