| 154 | } |
| 155 | |
| 156 | std::string DescriptorToName(const char* descriptor) { |
| 157 | size_t length = strlen(descriptor); |
| 158 | if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { |
| 159 | std::string result(descriptor + 1, length - 2); |
| 160 | return result; |
| 161 | } |
| 162 | return descriptor; |
| 163 | } |
| 164 | |
| 165 | // Helper for IsValidPartOfMemberNameUtf8(), a bit vector indicating valid low ascii. |
| 166 | static uint32_t DEX_MEMBER_VALID_LOW_ASCII[4] = { |
nothing calls this directly
no outgoing calls
no test coverage detected