const command_rec *cmds)
{
while (cmds->name) {
- if (!strcasecmp(name, cmds->name))
+ if (!ap_casecmpstr(name, cmds->name))
return cmds;
++cmds;
*bracket = '\0';
- if (strcasecmp(cmd_name + 2,
- (*curr_parent)->directive + 1) != 0) {
+ if (ap_casecmpstr(cmd_name + 2,
+ (*curr_parent)->directive + 1) != 0) {
parms->err_directive = newdir;
return apr_pstrcat(p, "Expected </",
(*curr_parent)->directive + 1, "> but saw ",
while ((rc = ap_varbuf_cfg_getline(&vb, parms->config_file, max_len))
== APR_SUCCESS) {
if (!memcmp(vb.buf, "</", 2)
- && (strcasecmp(vb.buf + 2, bracket) == 0)
+ && (ap_casecmpstr(vb.buf + 2, bracket) == 0)
&& (*curr_parent == NULL)) {
break;
}
if (cmd_name[1] == '/') {
cmd_name[strlen(cmd_name) - 1] = '\0';
- if (strcasecmp(cmd_name + 2, directive + 1) != 0) {
+ if (ap_casecmpstr(cmd_name + 2, directive + 1) != 0) {
return apr_pstrcat(cmd->pool, "Expected </",
directive + 1, "> but saw ",
cmd_name, ">", NULL);
while (current != NULL) {
if (current->first_child != NULL)
count += count_directives_sub(directive, current->first_child);
- if (strcasecmp(current->directive, directive) == 0)
+ if (ap_casecmpstr(current->directive, directive) == 0)
count++;
current = current->next;
}
dirp = dirp->parent;
/* ### it would be nice to have atom-ized directives */
- if (strcasecmp(dirp->directive, what) == 0)
+ if (ap_casecmpstr(dirp->directive, what) == 0)
return dirp;
}
static const char *set_define(cmd_parms *cmd, void *dummy,
const char *name, const char *value)
{
- if (cmd->parent && strcasecmp(cmd->parent->directive, "<VirtualHost")) {
+ if (cmd->parent && ap_casecmpstr(cmd->parent->directive, "<VirtualHost")) {
return apr_pstrcat(cmd->pool, cmd->cmd->name, " is not valid in ",
cmd->parent->directive, " context", NULL);
}
{
int i;
char **defines;
- if (cmd->parent && strcasecmp(cmd->parent->directive, "<VirtualHost")) {
+ if (cmd->parent && ap_casecmpstr(cmd->parent->directive, "<VirtualHost")) {
return apr_pstrcat(cmd->pool, cmd->cmd->name, " is not valid in ",
cmd->parent->directive, " context", NULL);
}