Lines Matching refs:descriptor
29 void AppendPrettyDescriptor(const char* descriptor, std::string* result) { in AppendPrettyDescriptor() argument
31 const char* c = descriptor; in AppendPrettyDescriptor()
56 default: result->append(descriptor); return; in AppendPrettyDescriptor()
76 std::string PrettyDescriptor(const char* descriptor) { in PrettyDescriptor() argument
78 AppendPrettyDescriptor(descriptor, &result); in PrettyDescriptor()
129 std::string descriptor(class_name); in DotToDescriptor() local
130 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); in DotToDescriptor()
131 if (descriptor.length() > 0 && descriptor[0] != '[') { in DotToDescriptor()
132 descriptor = "L" + descriptor + ";"; in DotToDescriptor()
134 return descriptor; in DotToDescriptor()
137 std::string DescriptorToDot(const char* descriptor) { in DescriptorToDot() argument
138 size_t length = strlen(descriptor); in DescriptorToDot()
140 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { in DescriptorToDot()
142 std::string result(descriptor + 1, length - 2); in DescriptorToDot()
147 std::string result(descriptor); in DescriptorToDot()
153 return descriptor; in DescriptorToDot()
156 std::string DescriptorToName(const char* descriptor) { in DescriptorToName() argument
157 size_t length = strlen(descriptor); in DescriptorToName()
158 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { in DescriptorToName()
159 std::string result(descriptor + 1, length - 2); in DescriptorToName()
162 return descriptor; in DescriptorToName()