Lines Matching defs:length
68 size_t length = 0;
71 length = strlen((const char*)string) + sizeof("");
72 copy = (unsigned char*) cJSON_malloc(length);
77 memcpy(copy, string, length);
156 /* calculate the length of a string if encoded as JSON pointer with ~0 and ~1 escape sequences */
159 size_t length;
160 for (length = 0; *string != '\0'; (void)string++, length++)
165 length++;
169 return length;
691 /* object length mismatch (one of both children is not null) */