** msOWSLookupMetadata2() ** ** Attempts to lookup a given metadata name in multiple hashTables, and ** in multiple OWS namespaces within each. First searches the primary ** table and if no result is found, attempts the search using the ** secondary (fallback) table. ** ** 'namespaces' is a string with a letter for each namespace to lookup ** in the order they should be looked up. e.g. "MO" to l
| 480 | ** lookup. |
| 481 | */ |
| 482 | const char *msOWSLookupMetadata2(hashTableObj *pri, |
| 483 | hashTableObj *sec, |
| 484 | const char *namespaces, |
| 485 | const char *name) |
| 486 | { |
| 487 | const char *result; |
| 488 | |
| 489 | if ((result = msOWSLookupMetadata(pri, namespaces, name)) == NULL) |
| 490 | { |
| 491 | /* Try the secondary table */ |
| 492 | result = msOWSLookupMetadata(sec, namespaces, name); |
| 493 | } |
| 494 | |
| 495 | return result; |
| 496 | } |
| 497 | |
| 498 | |
| 499 | /* msOWSParseVersionString() |
no test coverage detected