diff options
author | Jim Jagielski <jim@apache.org> | 2015-12-30 13:03:01 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2015-12-30 13:03:01 +0100 |
commit | f970bc8d999588741a832f8de0ef84e37cb61de8 (patch) | |
tree | 53dcd918ff0ef21f459ac1084d5f5ef1ee4828df /include/httpd.h | |
parent | Better check (diff) | |
download | apache2-f970bc8d999588741a832f8de0ef84e37cb61de8.tar.xz apache2-f970bc8d999588741a832f8de0ef84e37cb61de8.zip |
New support function: ap_getword_conf2[_nc] which acts
just like ap_getword_conf[_nc] but allows for {} to be
used as word quotes. That is:
{Hello World} Foo Bar
"Hello World" Foo Bar
are equiv.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1722321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/httpd.h')
-rw-r--r-- | include/httpd.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/httpd.h b/include/httpd.h index 1ac9a23f2e..a3dcf4cec2 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1533,6 +1533,25 @@ AP_DECLARE(char *) ap_getword_conf(apr_pool_t *p, const char **line); AP_DECLARE(char *) ap_getword_conf_nc(apr_pool_t *p, char **line); /** + * Get the second word in the string paying attention to quoting, + * with {...} supported as well as "..." and '...' + * @param p The pool to allocate from + * @param line The line to traverse + * @return A copy of the string + */ +AP_DECLARE(char *) ap_getword_conf2(apr_pool_t *p, const char **line); + +/** + * Get the second word in the string paying attention to quoting, + * with {...} supported as well as "..." and '...' + * @param p The pool to allocate from + * @param line The line to traverse + * @return A copy of the string + * @note The same as ap_getword_conf2(), except it doesn't use const char **. + */ +AP_DECLARE(char *) ap_getword_conf2_nc(apr_pool_t *p, char **line); + +/** * Check a string for any config define or environment variable construct * and replace each of them by the value of that variable, if it exists. * The default syntax of the constructs is ${ENV} but can be changed by |