MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ppdFindChoice

Function ppdFindChoice

cups/ppd-mark.c:358–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 */
357
358ppd_choice_t * /* O - Choice pointer or @code NULL@ */
359ppdFindChoice(ppd_option_t *o, /* I - Pointer to option */
360 const char *choice) /* I - Name of choice */
361{
362 int i; /* Looping var */
363 ppd_choice_t *c; /* Current choice */
364
365
366 if (!o || !choice)
367 return (NULL);
368
369 if (choice[0] == '{' || !_cups_strncasecmp(choice, "Custom.", 7))
370 choice = "Custom";
371
372 for (i = o->num_choices, c = o->choices; i > 0; i --, c ++)
373 if (!_cups_strcasecmp(c->choice, choice))
374 return (c);
375
376 return (NULL);
377}
378
379
380/*

Callers 15

copy_modelFunction · 0.85
load_ppdFunction · 0.85
import_ppdMethod · 0.85
include_featureFunction · 0.85
auto_configureFunction · 0.85
mainFunction · 0.85
check_constraintsFunction · 0.85
check_duplexFunction · 0.85
check_sizesFunction · 0.85
show_conflictsFunction · 0.85
_ppdCacheCreateWithPPDFunction · 0.85
ppd_mark_optionFunction · 0.85

Calls 2

_cups_strncasecmpFunction · 0.85
_cups_strcasecmpFunction · 0.85

Tested by 6

mainFunction · 0.68
check_constraintsFunction · 0.68
check_duplexFunction · 0.68
check_sizesFunction · 0.68
show_conflictsFunction · 0.68
show_ppdFunction · 0.68