break;
case 16:
- if ((c >= '0') &&(c <= '9') )
+ if ((c >= '0') && (c <= '9') )
return c - '0';
- else if ((c >= 'A') &&(c <= 'F') )
+ else if ((c >= 'A') && (c <= 'F') )
return c - 'A' + 10;
- else if ((c >= 'a') &&(c <= 'f') )
+ else if ((c >= 'a') && (c <= 'f') )
return c - 'a' + 10;
else
{
return best;
}
+
static void
regex_add_multiple (struct RegexCombineCtx *ctx,
const char *regex,
count = 0;
for (i = 1UL; i < l; i++)
{
- if ((regex[i] != '|') &&(regex[i] != ')') )
+ if ((regex[i] != '|') && (regex[i] != ')') )
{
count++;
}
tmp[1] = '\0';
for (i = 1UL; i < l; i++)
{
- if ((regex[i] != '|') &&(regex[i] != ')') )
+ if ((regex[i] != '|') && (regex[i] != ')') )
{
tmp[0] = regex[i];
newctx = new_regex_ctx (ctx->size);
}
}
+
/**
* Add a single regex to a context, splitting the exisiting state.
*
/* There is no prefix match, add new */
idx = c2i (regex[0], ctx->size);
- if ((NULL == ctx->children[idx])&&(NULL != ctx->s))
+ if ((NULL == ctx->children[idx]) && (NULL != ctx->s))
{
/* this was the end before, add empty string */
newctx = new_regex_ctx (ctx->size);
GNUNET_free (regexes);
}
+
/* end of regex_test_lib.c */