| 3100 /* If there is no explicit value */ |
3100 /* If there is no explicit value */ |
| 3101 if (keyend == NULL) |
3101 if (keyend == NULL) |
| 3102 keyend = tmp; |
3102 keyend = tmp; |
| 3103 |
3103 |
| 3104 if (keyend && keyend != pairstart) { |
3104 if (keyend && keyend != pairstart) { |
| |
3105 char *p; |
| 3105 key = g_strndup(pairstart, (keyend - pairstart)); |
3106 key = g_strndup(pairstart, (keyend - pairstart)); |
| 3106 /* If there is an explicit value */ |
3107 /* If there is an explicit value */ |
| 3107 if (keyend != tmp && keyend != (tmp - 1)) |
3108 if (keyend != tmp && keyend != (tmp - 1)) |
| 3108 value = g_strndup(keyend + 1, (tmp - keyend - 1)); |
3109 value = g_strndup(keyend + 1, (tmp - keyend - 1)); |
| |
3110 for (p = key; *p; ++p) |
| |
3111 *p = g_ascii_tolower(*p); |
| 3109 g_hash_table_insert(params, key, value); |
3112 g_hash_table_insert(params, key, value); |
| 3110 } |
3113 } |
| 3111 keyend = value = NULL; |
3114 keyend = value = NULL; |
| 3112 pairstart = (*tmp) ? tmp + 1 : tmp; |
3115 pairstart = (*tmp) ? tmp + 1 : tmp; |
| 3113 } else if (*tmp == '=') |
3116 } else if (*tmp == '=') |