| 210 | } |
| 211 | |
| 212 | const char *msFirstKeyFromHashTable( hashTableObj *table ) |
| 213 | { |
| 214 | int hash_index; |
| 215 | |
| 216 | if (!table) { |
| 217 | msSetError(MS_HASHERR, "No hash table", "msFirstKeyFromHashTable"); |
| 218 | return NULL; |
| 219 | } |
| 220 | |
| 221 | for (hash_index = 0; hash_index < MS_HASHSIZE; hash_index++ ) { |
| 222 | if (table->items[hash_index] != NULL ) |
| 223 | return table->items[hash_index]->key; |
| 224 | } |
| 225 | |
| 226 | return NULL; |
| 227 | } |
| 228 | |
| 229 | const char *msNextKeyFromHashTable( hashTableObj *table, const char *lastKey ) |
| 230 | { |
no test coverage detected