Lines Matching refs:buffer
143 char *buffer, /* I - String buffer */ in _ppdNormalizeMakeAndModel() argument
149 if (!make_and_model || !buffer || bufsize < 1) in _ppdNormalizeMakeAndModel()
151 if (buffer) in _ppdNormalizeMakeAndModel()
152 *buffer = '\0'; in _ppdNormalizeMakeAndModel()
170 strlcpy(buffer, make_and_model + 1, bufsize); in _ppdNormalizeMakeAndModel()
172 if ((bufptr = strrchr(buffer, ')')) != NULL) in _ppdNormalizeMakeAndModel()
181 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in _ppdNormalizeMakeAndModel()
189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in _ppdNormalizeMakeAndModel()
197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in _ppdNormalizeMakeAndModel()
205 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in _ppdNormalizeMakeAndModel()
213 snprintf(buffer, bufsize, "EFI %s", make_and_model); in _ppdNormalizeMakeAndModel()
222 snprintf(buffer, bufsize, "Canon %s", make_and_model); in _ppdNormalizeMakeAndModel()
231 snprintf(buffer, bufsize, "HP %s", make_and_model); in _ppdNormalizeMakeAndModel()
234 strlcpy(buffer, make_and_model, bufsize); in _ppdNormalizeMakeAndModel()
240 if (!_cups_strncasecmp(buffer, "agfa", 4)) in _ppdNormalizeMakeAndModel()
246 buffer[0] = 'A'; in _ppdNormalizeMakeAndModel()
247 buffer[1] = 'G'; in _ppdNormalizeMakeAndModel()
248 buffer[2] = 'F'; in _ppdNormalizeMakeAndModel()
249 buffer[3] = 'A'; in _ppdNormalizeMakeAndModel()
251 else if (!_cups_strncasecmp(buffer, "Hewlett-Packard hp ", 19)) in _ppdNormalizeMakeAndModel()
257 buffer[0] = 'H'; in _ppdNormalizeMakeAndModel()
258 buffer[1] = 'P'; in _ppdNormalizeMakeAndModel()
259 _cups_strcpy(buffer + 2, buffer + 18); in _ppdNormalizeMakeAndModel()
261 else if (!_cups_strncasecmp(buffer, "Hewlett-Packard ", 16)) in _ppdNormalizeMakeAndModel()
267 buffer[0] = 'H'; in _ppdNormalizeMakeAndModel()
268 buffer[1] = 'P'; in _ppdNormalizeMakeAndModel()
269 _cups_strcpy(buffer + 2, buffer + 15); in _ppdNormalizeMakeAndModel()
271 else if (!_cups_strncasecmp(buffer, "Lexmark International", 21)) in _ppdNormalizeMakeAndModel()
277 _cups_strcpy(buffer + 8, buffer + 21); in _ppdNormalizeMakeAndModel()
279 else if (!_cups_strncasecmp(buffer, "herk", 4)) in _ppdNormalizeMakeAndModel()
285 buffer[0] = 'L'; in _ppdNormalizeMakeAndModel()
286 buffer[1] = 'H'; in _ppdNormalizeMakeAndModel()
287 buffer[2] = 'A'; in _ppdNormalizeMakeAndModel()
288 buffer[3] = 'G'; in _ppdNormalizeMakeAndModel()
290 else if (!_cups_strncasecmp(buffer, "linotype", 8)) in _ppdNormalizeMakeAndModel()
296 buffer[0] = 'L'; in _ppdNormalizeMakeAndModel()
297 buffer[1] = 'H'; in _ppdNormalizeMakeAndModel()
298 buffer[2] = 'A'; in _ppdNormalizeMakeAndModel()
299 buffer[3] = 'G'; in _ppdNormalizeMakeAndModel()
300 _cups_strcpy(buffer + 4, buffer + 8); in _ppdNormalizeMakeAndModel()
307 for (bufptr = buffer + strlen(buffer) - 1; in _ppdNormalizeMakeAndModel()
308 bufptr >= buffer && _cups_isspace(*bufptr); in _ppdNormalizeMakeAndModel()
313 return (buffer[0] ? buffer : NULL); in _ppdNormalizeMakeAndModel()