| 472 | } |
| 473 | |
| 474 | bool Index_ContainsAttribute |
| 475 | ( |
| 476 | const Index idx, |
| 477 | Attribute_ID attribute_id |
| 478 | ) { |
| 479 | ASSERT(idx != NULL); |
| 480 | |
| 481 | if(attribute_id == ATTRIBUTE_ID_NONE) return false; |
| 482 | |
| 483 | uint fields_count = array_len(idx->fields); |
| 484 | for(uint i = 0; i < fields_count; i++) { |
| 485 | IndexField *field = idx->fields + i; |
| 486 | if(field->id == attribute_id) return true; |
| 487 | } |
| 488 | |
| 489 | return false; |
| 490 | } |
| 491 | |
| 492 | // returns indexed label |
| 493 | const char *Index_GetLabel |
no test coverage detected