Home | History | Annotate | Download | only in libxml2

Lines Matching full:pool

159     xmlDictStringsPtr pool;
166 pool = dict->strings;
167 while (pool != NULL) {
168 if (pool->end - pool->free > namelen)
170 if (pool->size > size) size = pool->size;
171 pool = pool->next;
176 if (pool == NULL) {
181 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size);
182 if (pool == NULL)
184 pool->size = size;
185 pool->nbStrings = 0;
186 pool->free = &pool->array[0];
187 pool->end = &pool->array[size];
188 pool->next = dict->strings;
189 dict->strings = pool;
195 ret = pool->free;
196 memcpy(pool->free, name, namelen);
197 pool->free += namelen;
198 *(pool->free++) = 0;
199 pool->nbStrings++;
219 xmlDictStringsPtr pool;
228 pool = dict->strings;
229 while (pool != NULL) {
230 if (pool->end - pool->free > namelen + plen + 1)
232 if (pool->size > size) size = pool->size;
233 pool = pool->next;
238 if (pool == NULL) {
243 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size);
244 if (pool == NULL)
246 pool->size = size;
247 pool->nbStrings = 0;
248 pool->free = &pool->array[0];
249 pool->end = &pool->array[size];
250 pool->next = dict->strings;
251 dict->strings = pool;
257 ret = pool->free;
258 memcpy(pool->free, prefix, plen);
259 pool->free += plen;
260 *(pool->free++) = ':';
261 memcpy(pool->free, name, namelen);
262 pool->free += namelen;
263 *(pool->free++) = 0;
264 pool->nbStrings++;
664 xmlDictStringsPtr pool, nextp;
705 pool = dict->strings;
706 while (pool != NULL) {
707 nextp = pool->next;
708 xmlFree(pool);
709 pool = nextp;
1066 xmlDictStringsPtr pool;
1070 pool = dict->strings;
1071 while (pool != NULL) {
1072 if ((str >= &pool->array[0]) && (str <= pool->free))
1074 pool = pool->next;