Lines Matching full:container

59 		len += strlen(v->container[i]);  in get_strlen_sum()
76 free(v->container[i]); in vector_str_dest()
78 free(v->container); in vector_str_dest()
97 if (strncmp(v->container[i], o, l) == 0) in vector_str_find()
129 elem_size = strlen(v->container[i]); in vector_str_get_flat()
131 memcpy(rtn + elem_pos, v->container[i], elem_size); in vector_str_get_flat()
163 tmp_ctn[i] = v->container[i]; in vector_str_grow()
165 free(v->container); in vector_str_grow()
167 v->container = tmp_ctn; in vector_str_grow()
189 if ((v->container = malloc(sizeof(char *) * v->capacity)) == NULL) in vector_str_init()
192 assert(v->container != NULL); in vector_str_init()
213 free(v->container[v->size]); in vector_str_pop()
214 v->container[v->size] = NULL; in vector_str_pop()
233 if ((v->container[v->size] = malloc(sizeof(char) * (len + 1))) == NULL) in vector_str_push()
236 snprintf(v->container[v->size], len + 1, "%s", str); in vector_str_push()
262 if ((tmp_ctn[i] = strdup(org->container[i])) == NULL) { in vector_str_push_vector_head()
272 tmp_ctn[i + org->size] = dst->container[i]; in vector_str_push_vector_head()
274 free(dst->container); in vector_str_push_vector_head()
276 dst->container = tmp_ctn; in vector_str_push_vector_head()
302 tmp_ctn[i] = dst->container[i]; in vector_str_push_vector()
305 if ((tmp_ctn[i + dst->size] = strdup(org->container[i])) == in vector_str_push_vector()
315 free(dst->container); in vector_str_push_vector()
317 dst->container = tmp_ctn; in vector_str_push_vector()
342 len += strlen(v->container[i]); in vector_str_substr()
352 len = strlen(v->container[i]); in vector_str_substr()
353 memcpy(rtn + cur, v->container[i], len); in vector_str_substr()