1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00
Files
apache/include
Yann Ylavic 08ddf7ad0a ap_expr: open string expressions to the <word>.
Introduces the syntax "%{:<word>:}", borrowed from the <var>'s one, and which
likewise can be embedded anywhere in a string expression (the same reserved
character ':' gets reused in an unambiguous manner).

This allows the two types of expressions (boolean and string) to now share
fully the same language set, namely: strings, lists, vars, regexes, backrefs,
functions with multiple or complex arguments, and especially combinations
thereof.

Most of them were reserved to boolean expressions only, while complex string
constructions can also benefit to, well, strings. The <word> construct allows
that (say the syntax "%{:<word>:}" looks like a temporary variable constructed
in a string).

Since string expressions may now have to deal with lists (arrays), they also
need a way to produce/extract strings from list and vice versa. This can be
done with the new "join" and "split" operators, while the new substitution
regexes (like "s/<pattern>/<substitute>/<flags>") may be used to manipulate
strings in place. All this of course available for both string and boolean
expressions.

Tests and doc updates upcoming..



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810605 13f79535-47bb-0310-9956-ffa450edef68
2017-10-02 21:57:26 +00:00
..
2016-05-30 19:24:34 +00:00
2017-09-22 13:25:15 +00:00
2016-05-30 20:19:41 +00:00
2017-01-02 16:06:53 +00:00
2012-02-10 22:45:48 +00:00
2011-11-13 00:20:32 +00:00
2011-11-14 21:39:19 +00:00
2011-11-13 00:20:32 +00:00
2011-11-13 00:20:32 +00:00
2011-11-14 21:39:19 +00:00
2011-11-14 21:39:19 +00:00
2011-11-14 21:39:19 +00:00
2017-09-22 13:13:44 +00:00
2017-06-21 10:54:44 +00:00
2017-09-21 09:20:14 +00:00
2014-07-19 08:35:51 +00:00
2016-05-30 21:08:56 +00:00
2014-07-16 22:09:39 +00:00
2014-07-17 21:36:02 +00:00
2014-07-16 22:22:49 +00:00