Lines Matching refs:line

27  * #define DEBUG_CFG_LINES  to trace every line read from the config files
666 AP_DECLARE(char *) ap_getword_nc(apr_pool_t *atrans, char **line, char stop)
668 return ap_getword(atrans, (const char **) line, stop);
671 AP_DECLARE(char *) ap_getword(apr_pool_t *atrans, const char **line, char stop)
673 const char *pos = *line;
681 len = pos - *line;
682 res = apr_pstrmemdup(atrans, *line, len);
689 *line = pos;
694 AP_DECLARE(char *) ap_getword_white_nc(apr_pool_t *atrans, char **line)
696 return ap_getword_white(atrans, (const char **) line);
699 AP_DECLARE(char *) ap_getword_white(apr_pool_t *atrans, const char **line)
701 const char *pos = *line;
709 len = pos - *line;
710 res = apr_pstrmemdup(atrans, *line, len);
716 *line = pos;
721 AP_DECLARE(char *) ap_getword_nulls_nc(apr_pool_t *atrans, char **line,
724 return ap_getword_nulls(atrans, (const char **) line, stop);
727 AP_DECLARE(char *) ap_getword_nulls(apr_pool_t *atrans, const char **line,
730 const char *pos = ap_strchr_c(*line, stop);
734 apr_size_t len = strlen(*line);
735 res = apr_pstrmemdup(atrans, *line, len);
736 *line += len;
740 res = apr_pstrmemdup(atrans, *line, pos - *line);
744 *line = pos;
776 AP_DECLARE(char *) ap_getword_conf_nc(apr_pool_t *p, char **line)
778 return ap_getword_conf(p, (const char **) line);
781 AP_DECLARE(char *) ap_getword_conf(apr_pool_t *p, const char **line)
783 const char *str = *line, *strend;
791 *line = str;
821 *line = strend;
964 return apr_psprintf(p, "Error reading %s at line %d: Line too long",
967 return apr_psprintf(p, "Error reading %s at line %d: %pm",
971 /* Read one line from open ap_configfile_t, strip LF, increase line number */
1000 * check for line continuation,
1012 * line continuation requested -
1048 /* check for line continuation */
1090 /* Read one line from open ap_configfile_t, strip LF, increase line number */
1303 static int find_list_item(apr_pool_t *p, const char *line,
1307 const unsigned char *ptr = (const unsigned char *)line;
1310 if (!line || !tok) {
1325 do { /* loop for each item in line's list */
1431 AP_DECLARE(int) ap_find_list_item(apr_pool_t *p, const char *line,
1434 return find_list_item(p, line, tok, AP_ETAG_NONE);
1440 AP_DECLARE(int) ap_find_etag_strong(apr_pool_t *p, const char *line,
1443 return find_list_item(p, line, tok, AP_ETAG_STRONG);
1449 AP_DECLARE(int) ap_find_etag_weak(apr_pool_t *p, const char *line,
1452 return find_list_item(p, line, tok, AP_ETAG_WEAK);
1589 AP_DECLARE(int) ap_find_token(apr_pool_t *p, const char *line, const char *tok)
1594 if (!line)
1597 s = (const unsigned char *)line;
1624 AP_DECLARE(int) ap_find_last_token(apr_pool_t *p, const char *line,
1629 if (!line)
1632 llen = strlen(line);
1637 (lidx > 0 && !(apr_isspace(line[lidx - 1]) || line[lidx - 1] == ',')))
1640 return (strncasecmp(&line[lidx], tok, tlen) == 0);