Home | History | Annotate | Download | only in jsoncpp

Lines Matching full:newstring

2503   char* newString = static_cast<char*>(malloc(length + 1));
2504 if (newString == NULL) {
2509 memcpy(newString, value, length);
2510 newString[length] = 0;
2511 return newString;
2526 char* newString = static_cast<char*>(malloc(actualLength));
2527 if (newString == 0) {
2532 *reinterpret_cast<unsigned*>(newString) = length;
2533 memcpy(newString + sizeof(unsigned), value, length);
2534 newString[actualLength - 1U] = 0; // to avoid buffer over-run accidents by users later
2535 return newString;