* 20110619.0 (2.3.13-dev) add async connection infos to process_score in scoreboard,
* add ap_start_lingering_close(),
* add conn_state_e:CONN_STATE_LINGER_NORMAL and CONN_STATE_LINGER_SHORT
+ * 20110619.1 (2.3.13-dev) add ap_str_toupper()
*/
#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20110619
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 1 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
*/
AP_DECLARE(void) ap_str_tolower(char *s);
+/**
+ * convert a string to all uppercase
+ * @param s The string to convert to uppercase
+ */
+AP_DECLARE(void) ap_str_toupper(char *s);
+
/**
* Search a string from left to right for the first occurrence of a
* specific character
static char *rewrite_mapfunc_toupper(request_rec *r, char *key)
{
- char *p;
-
- for (p = key; *p; ++p) {
- *p = apr_toupper(*p);
- }
+ ap_str_toupper(key);
return key;
}
/* well, do it the hard way */
else {
- char *p;
apr_time_exp_t tm;
/* can't do this above, because of the getenv call */
- for (p = var; *p; ++p) {
- *p = apr_toupper(*p);
- }
+ ap_str_toupper(var);
switch (varlen) {
case 4:
static bs2_ForkType forktype = bs2_unknown;
-
-static void ap_str_toupper(char *str)
-{
- while (*str) {
- *str = apr_toupper(*str);
- ++str;
- }
-}
-
/* Determine the method for forking off a child in such a way as to
* set both the POSIX and BS2000 user id's to the unprivileged user.
*/
static bs2_ForkType forktype = bs2_unknown;
-
-static void ap_str_toupper(char *str)
-{
- while (*str) {
- *str = apr_toupper(*str);
- ++str;
- }
-}
-
/* Determine the method for forking off a child in such a way as to
* set both the POSIX and BS2000 user id's to the unprivileged user.
*/
}
}
+AP_DECLARE(void) ap_str_toupper(char *str)
+{
+ while (*str) {
+ *str = apr_toupper(*str);
+ ++str;
+ }
+}
+
/*
* We must return a FQDN
*/
static const char *toupper_func(ap_expr_eval_ctx_t *ctx, const void *data,
const char *arg)
{
- char *p;
char *result = apr_pstrdup(ctx->p, arg);
-
- for (p = result; *p; ++p) {
- *p = apr_toupper(*p);
- }
-
+ ap_str_toupper(result);
return result;
}