SSI tags to lowercase when they're already lowercase (in my
experience, this special case happens often enough to be
worth optimizing)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92286
13f79535-47bb-0310-9956-
ffa450edef68
SKIP_TAG_WHITESPACE(c);
*tag = c; /* First non-whitespace character (could be NULL). */
- while ((*c != '\0') && (*c != '=') && (!apr_isspace(*c))) {
+ while (apr_islower(*c)) {
+ c++; /* Optimization for the common case where the tag */
+ } /* is already lowercase */
+
+ while ((*c != '=') && (!apr_isspace(*c)) && (*c != '\0')) {
*c = apr_tolower(*c); /* find end of tag, lowercasing as we go... */
c++;
}