MCPcopy Create free account
hub / github.com/apache/httpd / do_languages_line

Function do_languages_line

modules/mappers/mod_negotiation.c:539–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537 */
538
539static apr_array_header_t *do_languages_line(apr_pool_t *p,
540 const char **lang_line)
541{
542 apr_array_header_t *lang_recs = apr_array_make(p, 2, sizeof(char *));
543
544 if (!lang_line) {
545 return lang_recs;
546 }
547
548 while (**lang_line) {
549 char **new = (char **) apr_array_push(lang_recs);
550 *new = ap_get_token(p, lang_line, 0);
551 ap_str_tolower(*new);
552 if (**lang_line == ',' || **lang_line == ';') {
553 ++(*lang_line);
554 }
555 }
556
557 return lang_recs;
558}
559
560/*****************************************************************
561 *

Callers 1

read_type_mapFunction · 0.85

Calls 2

ap_get_tokenFunction · 0.85
ap_str_tolowerFunction · 0.85

Tested by

no test coverage detected