• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cups-408/cups/cups/

Lines Matching refs:text

47   char		*text;			/* Text from array */
150 if ((text = (char *)cupsArrayFirst(array)) != NULL &&
151 !strcmp(text, "Blue Fish"))
155 printf("FAIL (returned \"%s\", expected \"Blue Fish\")\n", text);
164 if ((text = (char *)cupsArrayNext(array)) != NULL &&
165 !strcmp(text, "One Fish"))
169 printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text);
178 if ((text = (char *)cupsArrayLast(array)) != NULL &&
179 !strcmp(text, "Two Fish"))
183 printf("FAIL (returned \"%s\", expected \"Two Fish\")\n", text);
192 if ((text = (char *)cupsArrayPrev(array)) != NULL &&
193 !strcmp(text, "Red Fish"))
197 printf("FAIL (returned \"%s\", expected \"Red Fish\")\n", text);
206 if ((text = (char *)cupsArrayFind(array, (void *)"One Fish")) != NULL &&
207 !strcmp(text, "One Fish"))
211 printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text);
220 if ((text = (char *)cupsArrayCurrent(array)) != NULL &&
221 !strcmp(text, "One Fish"))
225 printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text);
308 for (text = (char *)cupsArrayFirst(array); text;)
315 strlcpy(word, text, sizeof(word));
321 if ((text = (char *)cupsArrayNext(array)) == NULL)
324 if (strcmp(word, text) >= 0)
328 if (text)
330 printf("FAIL (\"%s\" >= \"%s\"!)\n", word, text);
343 text = (char *)cupsArrayFirst(array);
344 cupsArrayRemove(array, text);
345 free(text);
347 text = (char *)cupsArrayNext(array);
348 if (!text)
362 for (i = 0, text = (char *)cupsArrayFirst(array);
364 i ++, text = (char *)cupsArrayNext(array))
366 saved[i] = text;
383 text = cupsArrayRestore(array);
384 if (text != saved[i])
416 else if (strcmp(text = (char *)cupsArrayFirst(array), "bar"))
419 printf("FAIL (first element \"%s\", expected \"bar\")\n", text);
421 else if (strcmp(text = (char *)cupsArrayNext(array), "boo"))
424 printf("FAIL (first element \"%s\", expected \"boo\")\n", text);
426 else if (strcmp(text = (char *)cupsArrayNext(array), "far"))
429 printf("FAIL (first element \"%s\", expected \"far\")\n", text);
431 else if (strcmp(text = (char *)cupsArrayNext(array), "foo"))
434 printf("FAIL (first element \"%s\", expected \"foo\")\n", text);
447 else if (strcmp(text = (char *)cupsArrayFirst(array), "bar"))
450 printf("FAIL (first element \"%s\", expected \"bar\")\n", text);
452 else if (strcmp(text = (char *)cupsArrayNext(array), "bar2"))
455 printf("FAIL (first element \"%s\", expected \"bar2\")\n", text);
457 else if (strcmp(text = (char *)cupsArrayNext(array), "boo"))
460 printf("FAIL (first element \"%s\", expected \"boo\")\n", text);
462 else if (strcmp(text = (char *)cupsArrayNext(array), "far"))
465 printf("FAIL (first element \"%s\", expected \"far\")\n", text);
467 else if (strcmp(text = (char *)cupsArrayNext(array), "foo"))
470 printf("FAIL (first element \"%s\", expected \"foo\")\n", text);
472 else if (strcmp(text = (char *)cupsArrayNext(array), "foo2"))
475 printf("FAIL (first element \"%s\", expected \"foo2\")\n", text);