Searched refs:newStr (Results 1 – 6 of 6) sorted by relevance
202 char* newStr = strdup(str); in dvmDotToSlash() local203 char* cp = newStr; in dvmDotToSlash()205 if (newStr == NULL) in dvmDotToSlash()218 return newStr; in dvmDotToSlash()326 char* newStr; in dvmDescriptorToDot() local333 newStr = (char*)malloc(at + 1); /* Add one for the '\0'. */ in dvmDescriptorToDot()334 if (newStr == NULL) in dvmDescriptorToDot()337 newStr[at] = '\0'; in dvmDescriptorToDot()341 newStr[at] = (str[at] == '/') ? '.' : str[at]; in dvmDescriptorToDot()344 return newStr; in dvmDescriptorToDot()[all …]
299 char* newStr = (char*) malloc(byteLen+1); in dvmCreateCstrFromString() local300 if (newStr == NULL) { in dvmCreateCstrFromString()303 convertUtf16ToUtf8(newStr, data, len); in dvmCreateCstrFromString()305 return newStr; in dvmCreateCstrFromString()
2225 StringObject* newStr = dvmCreateStringFromCstr(bytes); in NewStringUTF() local2226 jstring result = (jstring) addLocalReference(env, (Object*) newStr); in NewStringUTF()2227 dvmReleaseTrackedAlloc((Object*)newStr, NULL); in NewStringUTF()2267 char* newStr = dvmCreateCstrFromString(strObj); in GetStringUTFChars() local2268 if (newStr == NULL) { in GetStringUTFChars()2272 return newStr; in GetStringUTFChars()
63 const char *newStr; in hprofLookupStringId() local65 newStr = strdup(str); in hprofLookupStringId()66 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)newStr, in hprofLookupStringId()
58 char* newStr; in descriptorToDot() local66 newStr = (char*)malloc(at + 1); /* Add one for the '\0'. */ in descriptorToDot()67 newStr[at] = '\0'; in descriptorToDot()71 newStr[at] = (str[at] == '/') ? '.' : str[at]; in descriptorToDot()74 return newStr; in descriptorToDot()
131 char* newStr; in descriptorToDot() local155 newStr = (char*)malloc(targetLen + arrayDepth * 2 +1); in descriptorToDot()161 newStr[i] = (ch == '/' || ch == '$') ? '.' : ch; in descriptorToDot()166 newStr[i++] = '['; in descriptorToDot()167 newStr[i++] = ']'; in descriptorToDot()169 newStr[i] = '\0'; in descriptorToDot()172 return newStr; in descriptorToDot()184 char* newStr; in descriptorClassToDot() local194 newStr = strdup(lastSlash); in descriptorClassToDot()195 newStr[strlen(lastSlash)-1] = '\0'; in descriptorClassToDot()[all …]