Lines Matching defs:text
46 n->text[size] = 0;
51 AvahiStringList *avahi_string_list_add_arbitrary(AvahiStringList *l, const uint8_t*text, size_t size) {
54 assert(size == 0 || text);
60 memcpy(n->text, text, size);
65 AvahiStringList *avahi_string_list_add(AvahiStringList *l, const char *text) {
66 assert(text);
68 return avahi_string_list_add_arbitrary(l, (const uint8_t*) text, strlen(text));
155 strncpy(e, (char*) n->text, n->size);
196 memcpy(c, n->text, k);
249 if (a->size != 0 && memcmp(a->text, b->text, a->size) != 0)
299 if (!(r = avahi_string_list_add_arbitrary(r, l->text, l->size))) {
343 n = vsnprintf((char*) r->text, len, format, va2);
363 r->size = strlen((char*) r->text);
387 if (strcasecmp((char*) l->text, key) == 0)
390 if (strncasecmp((char*) l->text, key, n) == 0 && l->text[n] == '=')
418 memcpy(l->text, key, n);
419 l->text[n] = '=';
420 memcpy(l->text + n + 1, value, size);
430 if (!(e = memchr(l->text, '=', l->size))) {
433 if (!(*key = avahi_strdup((char*) l->text)))
446 if (!(*key = avahi_strndup((char*) l->text, e - (char *) l->text)))
451 n = l->size - (e - (char*) l->text);
478 return l->text;